Skip to content

Commit

Permalink
Mingw32 fix for 64-bit literals.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 1, 2007
1 parent 2296f69 commit 565f973
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Expand Up @@ -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().
Expand Down
6 changes: 2 additions & 4 deletions platform/windows.c
Expand Up @@ -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
Expand Down

0 comments on commit 565f973

Please sign in to comment.