diff options
| author | raysan5 <[email protected]> | 2020-01-19 12:10:09 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-01-19 12:10:09 +0100 |
| commit | 1c4dadcf6845037003345d5b8384066c855b80d8 (patch) | |
| tree | 0f59a292ea57cb8e74333374b1b4494d42454391 /src/rnet.h | |
| parent | d797bb3e1cef4541eadc09ebe9c67f2b229613dd (diff) | |
| download | raylib-1c4dadcf6845037003345d5b8384066c855b80d8.tar.gz raylib-1c4dadcf6845037003345d5b8384066c855b80d8.zip | |
Support custom memory allocators
Diffstat (limited to 'src/rnet.h')
| -rw-r--r-- | src/rnet.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -91,6 +91,17 @@ #define NOMCX // Modem Configuration Extensions
#define MMNOSOUND
+// Allow custom memory allocators
+#ifndef RNET_MALLOC
+ #define RNET_MALLOC(sz) malloc(sz)
+#endif
+#ifndef RNET_CALLOC
+ #define RNET_CALLOC(n,sz) calloc(n,sz)
+#endif
+#ifndef RNET_FREE
+ #define RNET_FREE(p) free(p)
+#endif
+
//----------------------------------------------------------------------------------
// Platform type definitions
// From: https://github.com/DFHack/clsocket/blob/master/src/Host.h
|
