Skip to content

Commit

Permalink
Apparently this is how you do 64-bit literals in MSVC...untested.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 21, 2007
1 parent b2f9b61 commit 80ec45d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion physfs_internal.h
Expand Up @@ -1273,9 +1273,12 @@ void __PHYSFS_sort(void *entries, PHYSFS_uint32 max,

#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
Expand Down

0 comments on commit 80ec45d

Please sign in to comment.