Navigation Menu

Skip to content

Commit

Permalink
Hack to make this compile with Mingw32.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 11, 2002
1 parent 196edf5 commit 2193cd8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions platform/win32.c
Expand Up @@ -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)
Expand Down

0 comments on commit 2193cd8

Please sign in to comment.