r862 - trunk
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Mar 21 16:14:46 EDT 2007
Author: icculus
Date: 2007-03-21 16:14:46 -0400 (Wed, 21 Mar 2007)
New Revision: 862
Modified:
trunk/CHANGELOG.txt
trunk/physfs_internal.h
Log:
Replaced LONGLONGLITERAL with __PHYSFS_UI64/__PHYSFS_SI64.
Modified: trunk/CHANGELOG.txt
===================================================================
--- trunk/CHANGELOG.txt 2007-03-21 20:06:29 UTC (rev 861)
+++ trunk/CHANGELOG.txt 2007-03-21 20:14:46 UTC (rev 862)
@@ -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
Modified: trunk/physfs_internal.h
===================================================================
--- trunk/physfs_internal.h 2007-03-21 20:06:29 UTC (rev 861)
+++ trunk/physfs_internal.h 2007-03-21 20:14:46 UTC (rev 862)
@@ -1274,9 +1274,11 @@
#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
/*
@@ -1288,7 +1290,7 @@
*/
#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)))) \
)
/*
More information about the physfs-commits
mailing list