1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-07 06:41:38 +00:00

sync with ttvfs repo

This commit is contained in:
fgenesis 2014-04-07 04:16:15 +02:00
commit 0bf247169a
10 changed files with 67 additions and 69 deletions

View file

@ -21,24 +21,17 @@
#define VFS_IGNORE_CASE
// These are used for small, temporary memory allocations that can remain on the stack.
// If alloca is available, this is the preferred way.
#include <cstdlib>
#ifdef _WIN32
# include <malloc.h> // MSVC/MinGW still need this for alloca. Seems to be windows-specific failure
#endif
#define VFS_STACK_ALLOC(size) alloca(size)
#define VFS_STACK_FREE(ptr) /* no need to free anything here */
// Fail-safe:
//#define VFS_STACK_ALLOC(size) malloc(size)
//#define VFS_STACK_FREE(ptr) free(ptr)
/* --- End of config section --- */
#define VFS_NAMESPACE_START namespace ttvfs {
#define VFS_NAMESPACE_END }
#if !defined(_MSC_VER)
# include <stdint.h>
#endif
VFS_NAMESPACE_START
#ifdef VFS_LARGEFILE_SUPPORT