From be12a5bdc546fabcb5879ac111e14cdf70a970b6 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 1 Oct 2007 15:47:40 +0000 Subject: [PATCH] Mingw32 fix for 64-bit literals. --- CHANGELOG | 1 + platform/win32.c | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index ca54f01..f77cfac 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,6 +4,7 @@ -- stuff in the stable-1.0 branch, backported from 2.0.0 dev branch, etc --- +10012007 - More mingw32 fixes. 07122007 - Maybe fixed compile on mingw32. 07112007 - Fixed crash on zero-byte read/write (thanks, Ensiform!). 05052007 - Fixed zip archiver: could do bogus seek if a small, non-zip file diff --git a/platform/win32.c b/platform/win32.c index 6934981..f8e48ee 100644 --- a/platform/win32.c +++ b/platform/win32.c @@ -29,10 +29,8 @@ #define alloca(x) __builtin_alloca(x) #endif -#define LOWORDER_UINT64(pos) (PHYSFS_uint32) \ - (pos & 0x00000000FFFFFFFF) -#define HIGHORDER_UINT64(pos) (PHYSFS_uint32) \ - (((pos & 0xFFFFFFFF00000000) >> 32) & 0x00000000FFFFFFFF) +#define LOWORDER_UINT64(pos) ((PHYSFS_uint32) (pos & 0xFFFFFFFF)) +#define HIGHORDER_UINT64(pos) ((PHYSFS_uint32) ((pos >> 32) & 0xFFFFFFFF)) /* GetUserProfileDirectory() is only available on >= NT4 (no 9x/ME systems!) */ typedef BOOL (STDMETHODCALLTYPE FAR * LPFNGETUSERPROFILEDIR) (