Mingw32 fix for 64-bit literals.

This commit is contained in:
Ryan C. Gordon 2007-10-01 15:47:40 +00:00
parent 782bb8a06f
commit be12a5bdc5
2 changed files with 3 additions and 4 deletions

View File

@ -4,6 +4,7 @@
-- stuff in the stable-1.0 branch, backported from 2.0.0 dev branch, etc --- -- 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. 07122007 - Maybe fixed compile on mingw32.
07112007 - Fixed crash on zero-byte read/write (thanks, Ensiform!). 07112007 - Fixed crash on zero-byte read/write (thanks, Ensiform!).
05052007 - Fixed zip archiver: could do bogus seek if a small, non-zip file 05052007 - Fixed zip archiver: could do bogus seek if a small, non-zip file

View File

@ -29,10 +29,8 @@
#define alloca(x) __builtin_alloca(x) #define alloca(x) __builtin_alloca(x)
#endif #endif
#define LOWORDER_UINT64(pos) (PHYSFS_uint32) \ #define LOWORDER_UINT64(pos) ((PHYSFS_uint32) (pos & 0xFFFFFFFF))
(pos & 0x00000000FFFFFFFF) #define HIGHORDER_UINT64(pos) ((PHYSFS_uint32) ((pos >> 32) & 0xFFFFFFFF))
#define HIGHORDER_UINT64(pos) (PHYSFS_uint32) \
(((pos & 0xFFFFFFFF00000000) >> 32) & 0x00000000FFFFFFFF)
/* GetUserProfileDirectory() is only available on >= NT4 (no 9x/ME systems!) */ /* GetUserProfileDirectory() is only available on >= NT4 (no 9x/ME systems!) */
typedef BOOL (STDMETHODCALLTYPE FAR * LPFNGETUSERPROFILEDIR) ( typedef BOOL (STDMETHODCALLTYPE FAR * LPFNGETUSERPROFILEDIR) (