We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0e6057 commit 3d65fb3Copy full SHA for 3d65fb3
src/stb_decompress.h
@@ -15,7 +15,11 @@
15
//-----------------------------------------------------------------------------
16
17
#include <assert.h>
18
-#include <malloc.h>
+#if defined(__linux__) || defined(__GLIBC__)
19
+# include <malloc.h> // Linux
20
+#else
21
+# include <stdlib.h> // macOS / *BSD
22
+#endif
23
#include <memory.h>
24
25
//=========================================================
0 commit comments