Mingw32 fix for 64-bit literals.

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

View File

@ -2,6 +2,7 @@
* CHANGELOG.
*/
10012007 - More mingw32 fixes.
07122007 - Maybe fixed compile on mingw32.
07112007 - Fixed crash on zero-byte read/write (thanks, Ensiform!).
05272007 - FIXME removal: Replaced a strncpy() with a memcpy().

View File

@ -26,10 +26,8 @@
#include "physfs_internal.h"
#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))
/*
* Users without the platform SDK don't have this defined. The original docs