Skip to content

Commit

Permalink
Replaced LONGLONGLITERAL with __PHYSFS_UI64/__PHYSFS_SI64.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 21, 2007
1 parent 6802700 commit b2f9b61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.txt
@@ -1,7 +1,7 @@
/*
* CHANGELOG.
*/

03212007 - Replaced LONGLONGLITERAL with __PHYSFS_UI64/__PHYSFS_SI64 ...
03202007 - Removed platform/skeleton.c (it was out of date), added
platform/macosx.c (To further Macify the code and get the #ifdefs
out of unix.c), and refactored the platform layer to try and
Expand Down
8 changes: 5 additions & 3 deletions physfs_internal.h
Expand Up @@ -1274,9 +1274,11 @@ void __PHYSFS_sort(void *entries, PHYSFS_uint32 max,
#define __PHYSFS_ARRAYLEN(x) ( (sizeof (x)) / (sizeof (x[0])) )

#ifdef __GNUC__
#define LONGLONGLITERAL(x) x##LL
#define __PHYSFS_SI64(x) x##LL
#define __PHYSFS_UI64(x) x##ULL
#else
#define LONGLONGLITERAL(x) x
#define __PHYSFS_SI64(x) x
#define __PHYSFS_UI64(x) x
#endif

/*
Expand All @@ -1288,7 +1290,7 @@ void __PHYSFS_sort(void *entries, PHYSFS_uint32 max,
*/
#define __PHYSFS_ui64FitsAddressSpace(s) ( \
(sizeof (PHYSFS_uint64) > sizeof (size_t)) && \
((s) > (LONGLONGLITERAL(0xFFFFFFFFFFFFFFFF) >> (64-(sizeof(size_t)*8)))) \
((s) > (__PHYSFS_UI64(0xFFFFFFFFFFFFFFFF) >> (64-(sizeof(size_t)*8)))) \
)

/*
Expand Down

0 comments on commit b2f9b61

Please sign in to comment.