From 80ec45d88afa5868a916b921ba0964dd0f52ad7f Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 21 Mar 2007 20:19:20 +0000 Subject: [PATCH] Apparently this is how you do 64-bit literals in MSVC...untested. --- physfs_internal.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/physfs_internal.h b/physfs_internal.h index 9c40a9d9..5f1e5998 100644 --- a/physfs_internal.h +++ b/physfs_internal.h @@ -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