Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Patched to compile on MSVC.
  • Loading branch information
icculus committed Mar 25, 2007
1 parent 75a4f4f commit 71e6a8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions physfs_internal.h
Expand Up @@ -58,8 +58,8 @@ extern "C" {
void *__PHYSFS_initSmallAlloc(void *ptr, PHYSFS_uint64 len);

#define __PHYSFS_smallAlloc(bytes) ( \
__PHYSFS_initSmallAlloc(((bytes < __PHYSFS_SMALLALLOCTHRESHOLD) ? \
alloca(bytes+1) : NULL), bytes) \
__PHYSFS_initSmallAlloc((((bytes) < __PHYSFS_SMALLALLOCTHRESHOLD) ? \
alloca((size_t)((bytes)+1)) : NULL), (bytes)) \
)

void __PHYSFS_smallFree(void *ptr);
Expand Down

0 comments on commit 71e6a8d

Please sign in to comment.