aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2019-04-23 14:55:35 +0200
committerRay <raysan5@gmail.com>2019-04-23 14:55:35 +0200
commite67ebabb02c1068d6e7f5107dcff5388ede3faa5 (patch)
tree40820768bec18bc682038f29d6dee6d85fc0e3c9 /src/utils.c
parent8ed71b9d5a90ccca5551aaf069318e3c8b4a87e6 (diff)
downloadraylib-e67ebabb02c1068d6e7f5107dcff5388ede3faa5.tar.gz
raylib-e67ebabb02c1068d6e7f5107dcff5388ede3faa5.zip
Support custom memory management macros
Users can define their custom memory management macros. NOTE: Most external libraries support custom macros in the same way, raylib should redefine those macros to raylib ones, to unify custom memory loading. That redefinition is only implemented as example for stb_image.h in [textures] module.
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils.c b/src/utils.c
index 10cce9b9..3cff472b 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -45,10 +45,10 @@
#include <android/asset_manager.h> // Required for: Android assets manager: AAsset, AAssetManager_open(), ...
#endif
-#include <stdlib.h> // Required for: malloc(), free()
-#include <stdio.h> // Required for: fopen(), fclose(), fputc(), fwrite(), printf(), fprintf(), funopen()
+#include <stdlib.h> // Required for: exit()
+#include <stdio.h> // Required for: printf(), sprintf()
#include <stdarg.h> // Required for: va_list, va_start(), vfprintf(), va_end()
-#include <string.h> // Required for: strlen(), strrchr(), strcmp()
+#include <string.h> // Required for: strcpy(), strcat()
#define MAX_TRACELOG_BUFFER_SIZE 128 // Max length of one trace-log message