diff options
| author | raysan5 <[email protected]> | 2021-10-13 20:47:57 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-10-13 20:47:57 +0200 |
| commit | 4390d3a122ec4ab40e1887e29ddaf59ebad706cc (patch) | |
| tree | f60d18d4d9c6bf9ab924ffe93197573cd6ac08aa /src/external | |
| parent | a77afd5c8f1d19ff013b798e10dd19e8fbf3f8ae (diff) | |
| download | raylib-4390d3a122ec4ab40e1887e29ddaf59ebad706cc.tar.gz raylib-4390d3a122ec4ab40e1887e29ddaf59ebad706cc.zip | |
Avoid raylib dependency
Diffstat (limited to 'src/external')
| -rw-r--r-- | src/external/vox_loader.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/external/vox_loader.h b/src/external/vox_loader.h index f199a333..e200e1eb 100644 --- a/src/external/vox_loader.h +++ b/src/external/vox_loader.h @@ -49,21 +49,18 @@ revision history: #ifndef VOX_LOADER_H #define VOX_LOADER_H -#include <string.h> -#include <stdlib.h> - // Allow custom memory allocators #ifndef VOX_MALLOC - #define VOX_MALLOC RL_MALLOC + #define VOX_MALLOC(sz) malloc(sz) #endif #ifndef VOX_CALLOC - #define VOX_CALLOC RL_CALLOC + #define VOX_CALLOC(n,sz) calloc(n,sz) #endif #ifndef VOX_REALLOC - #define VOX_REALLOC RL_REALLOC + #define VOX_REALLOC(n,sz) realloc(n,sz) #endif #ifndef VOX_FREE - #define VOX_FREE RL_FREE + #define VOX_FREE(p) free(p) #endif #define VOX_SUCCESS (0) @@ -157,6 +154,9 @@ void Vox_FreeArrays(VoxArray3D* voxarray); #ifdef VOX_LOADER_IMPLEMENTATION +#include <string.h> +#include <stdlib.h> + ///////////////////////////////////////////////////////////////////////////////////////////// // ArrayUShort helper ///////////////////////////////////////////////////////////////////////////////////////////// |
