backout r1bed4aee19e0 and r3883b5dc600c
authorkoda
Mon, 10 Jun 2013 16:37:21 +0200
changeset 9188 ba9cca49a5e2
parent 9186 d87e2c7838fa
child 9190 4fc0e95e7b64
backout r1bed4aee19e0 and r3883b5dc600c
misc/libphysfs/CMakeLists.txt
misc/libphysfs/physfs_internal.h
--- a/misc/libphysfs/CMakeLists.txt	Tue Jun 11 02:42:52 2013 +0200
+++ b/misc/libphysfs/CMakeLists.txt	Mon Jun 10 16:37:21 2013 +0200
@@ -35,15 +35,6 @@
 include(CheckCSourceCompiles)
 
 
-# 32bit platforms won't link unless this is set
-# although Windows doesn't like it
-if(NOT WINDOWS)
-    if(CMAKE_SIZEOF_VOID_P LESS 8)
-        add_definitions(-DPHYSFS_NO_64BIT_SUPPORT=1)
-    endif(CMAKE_SIZEOF_VOID_P LESS 8)
-endif(NOT WINDOWS)
-
-
 if(MACOSX)
     # Fallback to older OS X on PowerPC to support wider range of systems...
     if(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
--- a/misc/libphysfs/physfs_internal.h	Tue Jun 11 02:42:52 2013 +0200
+++ b/misc/libphysfs/physfs_internal.h	Mon Jun 10 16:37:21 2013 +0200
@@ -322,13 +322,8 @@
 #define __PHYSFS_ARRAYLEN(x) ( (sizeof (x)) / (sizeof (x[0])) )
 
 #ifdef PHYSFS_NO_64BIT_SUPPORT
-/* if a 32bit compiler sees something with this many bits: 0xFFFFFFFFFFFFFFFF
- *  it doesn't know if it really means 64bit or if it's supposed to squeeze
- *  it into 32 bit, so without the ULL it squeezes the number to 32 bit,
- *  with it it forces it to be 64bits
- */
-#define __PHYSFS_SI64(x) ((PHYSFS_sint64) (x##LL))
-#define __PHYSFS_UI64(x) ((PHYSFS_uint64) (x##ULL))
+#define __PHYSFS_SI64(x) ((PHYSFS_sint64) (x))
+#define __PHYSFS_UI64(x) ((PHYSFS_uint64) (x))
 #elif (defined __GNUC__)
 #define __PHYSFS_SI64(x) x##LL
 #define __PHYSFS_UI64(x) x##ULL