update dependencies to use global alloc

This commit is contained in:
Matthew 2025-05-19 19:48:56 +10:00
parent c7db4177fa
commit b6b2e87e07
3 changed files with 6579 additions and 5 deletions

6574
external/m3d/m3d.h vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -679,9 +679,9 @@ typedef unsigned char validate_uint32[sizeof(stbi__uint32)==4 ? 1 : -1];
#endif #endif
#ifndef STBI_MALLOC #ifndef STBI_MALLOC
#define STBI_MALLOC(sz) malloc(sz) #define STBI_MALLOC(sz) FLMemAlloc(sz)
#define STBI_REALLOC(p,newsz) realloc(p,newsz) #define STBI_REALLOC(p,newsz) FLMemRealloc(p,newsz)
#define STBI_FREE(p) free(p) #define STBI_FREE(p) FLMemFree(p)
#endif #endif
#ifndef STBI_REALLOC_SIZED #ifndef STBI_REALLOC_SIZED

View File

@ -2384,13 +2384,13 @@ static void XXH_free(void* p) { (void)p; }
* @internal * @internal
* @brief Modify this function to use a different routine than malloc(). * @brief Modify this function to use a different routine than malloc().
*/ */
static XXH_MALLOCF void* XXH_malloc(size_t s) { return malloc(s); } static XXH_MALLOCF void* XXH_malloc(size_t s) { return FLMemAlloc(s); }
/*! /*!
* @internal * @internal
* @brief Modify this function to use a different routine than free(). * @brief Modify this function to use a different routine than free().
*/ */
static void XXH_free(void* p) { free(p); } static void XXH_free(void* p) { FLMemFree(p); }
#endif /* XXH_NO_STDLIB */ #endif /* XXH_NO_STDLIB */