misc/libphysfs/physfs_internal.h
branch0.9.19
changeset 9126 63bf1f4f40f8
parent 9110 3883b5dc600c
child 10017 de822cd3df3a
equal deleted inserted replaced
9124:955a90b88865 9126:63bf1f4f40f8
   320 #define GOTO_IF_MACRO_MUTEX(c, e, m, g) do { if (c) { if (e) __PHYSFS_setError(e); __PHYSFS_platformReleaseMutex(m); goto g; } } while (0)
   320 #define GOTO_IF_MACRO_MUTEX(c, e, m, g) do { if (c) { if (e) __PHYSFS_setError(e); __PHYSFS_platformReleaseMutex(m); goto g; } } while (0)
   321 
   321 
   322 #define __PHYSFS_ARRAYLEN(x) ( (sizeof (x)) / (sizeof (x[0])) )
   322 #define __PHYSFS_ARRAYLEN(x) ( (sizeof (x)) / (sizeof (x[0])) )
   323 
   323 
   324 #ifdef PHYSFS_NO_64BIT_SUPPORT
   324 #ifdef PHYSFS_NO_64BIT_SUPPORT
   325 /* if a 32bit compiler sees something with this many bits: 0xFFFFFFFFFFFFFFFF
   325 #define __PHYSFS_SI64(x) ((PHYSFS_sint64) (x))
   326  *  it doesn't know if it really means 64bit or if it's supposed to squeeze
   326 #define __PHYSFS_UI64(x) ((PHYSFS_uint64) (x))
   327  *  it into 32 bit, so without the ULL it squeezes the number to 32 bit,
       
   328  *  with it it forces it to be 64bits
       
   329  */
       
   330 #define __PHYSFS_SI64(x) ((PHYSFS_sint64) (x##LL))
       
   331 #define __PHYSFS_UI64(x) ((PHYSFS_uint64) (x##ULL))
       
   332 #elif (defined __GNUC__)
   327 #elif (defined __GNUC__)
   333 #define __PHYSFS_SI64(x) x##LL
   328 #define __PHYSFS_SI64(x) x##LL
   334 #define __PHYSFS_UI64(x) x##ULL
   329 #define __PHYSFS_UI64(x) x##ULL
   335 #elif (defined _MSC_VER)
   330 #elif (defined _MSC_VER)
   336 #define __PHYSFS_SI64(x) x##i64
   331 #define __PHYSFS_SI64(x) x##i64