Hack to make this compile with Mingw32.

This commit is contained in:
Ryan C. Gordon 2002-12-11 15:56:53 +00:00
parent 196edf5194
commit 2193cd81b7
1 changed files with 4 additions and 2 deletions

View File

@ -23,8 +23,10 @@
#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"
#ifdef _MSC_VER /* for Cygwin, etc. */
#define alloca _alloca
#if (defined _MSC_VER)
#define alloca(x) _alloca(x)
#elif (defined MINGW) /* scary...hopefully this is okay. */
#define alloca(x) __builtin_alloca(x)
#endif
#define LOWORDER_UINT64(pos) (PHYSFS_uint32)(pos & 0x00000000FFFFFFFF)