platform/win32.c
changeset 516 65c524ddd5ab
parent 504 3420d82f9b01
child 568 58a750d64f91
equal deleted inserted replaced
515:b5475eea664f 516:65c524ddd5ab
    21 #include <time.h>
    21 #include <time.h>
    22 
    22 
    23 #define __PHYSICSFS_INTERNAL__
    23 #define __PHYSICSFS_INTERNAL__
    24 #include "physfs_internal.h"
    24 #include "physfs_internal.h"
    25 
    25 
    26 #ifdef _MSC_VER /* for Cygwin, etc. */
    26 #if (defined _MSC_VER)
    27 #define alloca _alloca
    27     #define alloca(x) _alloca(x)
       
    28 #elif (defined MINGW)  /* scary...hopefully this is okay. */
       
    29     #define alloca(x) __builtin_alloca(x) 
    28 #endif
    30 #endif
    29 
    31 
    30 #define LOWORDER_UINT64(pos)       (PHYSFS_uint32)(pos & 0x00000000FFFFFFFF)
    32 #define LOWORDER_UINT64(pos)       (PHYSFS_uint32)(pos & 0x00000000FFFFFFFF)
    31 #define HIGHORDER_UINT64(pos)      (PHYSFS_uint32)(pos & 0xFFFFFFFF00000000)
    33 #define HIGHORDER_UINT64(pos)      (PHYSFS_uint32)(pos & 0xFFFFFFFF00000000)
    32 
    34