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:
parent
b437a7cb2c
commit
0bf247169a
10 changed files with 67 additions and 69 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue