r863 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Mar 21 16:19:20 EDT 2007


Author: icculus
Date: 2007-03-21 16:19:20 -0400 (Wed, 21 Mar 2007)
New Revision: 863

Modified:
   trunk/physfs_internal.h
Log:
Apparently this is how you do 64-bit literals in MSVC...untested.


Modified: trunk/physfs_internal.h
===================================================================
--- trunk/physfs_internal.h	2007-03-21 20:14:46 UTC (rev 862)
+++ trunk/physfs_internal.h	2007-03-21 20:19:20 UTC (rev 863)
@@ -1273,9 +1273,12 @@
 
 #define __PHYSFS_ARRAYLEN(x) ( (sizeof (x)) / (sizeof (x[0])) )
 
-#ifdef __GNUC__
+#if (defined __GNUC__)
 #define __PHYSFS_SI64(x) x##LL
 #define __PHYSFS_UI64(x) x##ULL
+#elif (defined _MSC_VER)
+#define __PHYSFS_SI64(x) x##i64
+#define __PHYSFS_UI64(x) x##ui64
 #else
 #define __PHYSFS_SI64(x) x
 #define __PHYSFS_UI64(x) x




More information about the physfs-commits mailing list