diff options
| author | chai <chaifix@163.com> | 2019-03-01 08:50:34 +0800 |
|---|---|---|
| committer | chai <chaifix@163.com> | 2019-03-01 08:50:34 +0800 |
| commit | 64d9d7b3eb7cece81da8b2cb56eb0f50d87a5964 (patch) | |
| tree | 12bde99e5415f77f60f8873a66d09bfd3b84ec48 /Source/3rdParty/Wuff/wuff_config.h | |
| parent | e28a7d48d032fe7fd4c8789e95fbc659873a0adc (diff) | |
*misc
Diffstat (limited to 'Source/3rdParty/Wuff/wuff_config.h')
| -rw-r--r-- | Source/3rdParty/Wuff/wuff_config.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/Source/3rdParty/Wuff/wuff_config.h b/Source/3rdParty/Wuff/wuff_config.h new file mode 100644 index 0000000..ed17005 --- /dev/null +++ b/Source/3rdParty/Wuff/wuff_config.h @@ -0,0 +1,50 @@ +#ifndef WUFF_CONFIG_H +#define WUFF_CONFIG_H + +/* Defines that the internal code is being built. */ +/* The wuff.h header uses this to change export and import macros. */ +#define WUFF_BUILDING_CORE + +#ifndef WUFF_INLINE_OVERRIDE + #ifdef __cplusplus + #define WUFF_INLINE inline + #else + #ifdef _MSC_VER + #define WUFF_INLINE __inline + #elif __GNUC__ + #define WUFF_INLINE __inline__ + #else + #define WUFF_INLINE + #endif + #endif +#endif + + +#ifndef WUFF_GCC_VISIBILITY_OVERRIDE + #if __GNUC__ >= 4 + #define WUFF_INTERN_API __attribute__((visibility("hidden"))) + #else + #define WUFF_INTERN_API + #endif +#endif + + +#ifdef WUFF_MEMALLOC_OVERRIDE + #ifdef __cplusplus +extern "C" { + #endif + + /* Define your own memory allocator. */ + void * wuff_alloc(size_t size); + void wuff_free(void * mem); + + #ifdef __cplusplus +} + #endif +#else +WUFF_INTERN_API void * wuff_alloc(size_t size); +WUFF_INTERN_API void wuff_free(void * mem); +#endif + + +#endif /* WUFF_CONFIG_H */ |
