Patched to compile on MSVC.
This commit is contained in:
parent
75a4f4ffe1
commit
71e6a8dc3f
|
@ -58,8 +58,8 @@ extern "C" {
|
||||||
void *__PHYSFS_initSmallAlloc(void *ptr, PHYSFS_uint64 len);
|
void *__PHYSFS_initSmallAlloc(void *ptr, PHYSFS_uint64 len);
|
||||||
|
|
||||||
#define __PHYSFS_smallAlloc(bytes) ( \
|
#define __PHYSFS_smallAlloc(bytes) ( \
|
||||||
__PHYSFS_initSmallAlloc(((bytes < __PHYSFS_SMALLALLOCTHRESHOLD) ? \
|
__PHYSFS_initSmallAlloc((((bytes) < __PHYSFS_SMALLALLOCTHRESHOLD) ? \
|
||||||
alloca(bytes+1) : NULL), bytes) \
|
alloca((size_t)((bytes)+1)) : NULL), (bytes)) \
|
||||||
)
|
)
|
||||||
|
|
||||||
void __PHYSFS_smallFree(void *ptr);
|
void __PHYSFS_smallFree(void *ptr);
|
||||||
|
|
Loading…
Reference in New Issue