aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-04-21 12:50:36 +0100
committergingerBill <bill@gingerbill.org>2023-04-21 12:50:36 +0100
commitf2ec438166333555bb0b9bc9de2c5b85e7ce4386 (patch)
treec4463b0dda67ade9a4019ecb47b2f52d95f1e102
parenta95b064d6d0a2e3dfa8c414be60ae966a099adfd (diff)
Add ifdef block
-rw-r--r--src/common_memory.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common_memory.cpp b/src/common_memory.cpp
index d6a87529f..c6ee88f03 100644
--- a/src/common_memory.cpp
+++ b/src/common_memory.cpp
@@ -1,4 +1,6 @@
+#if defined(GB_SYSTEM_LINUX)
#include <malloc.h>
+#endif
gb_internal gb_inline void zero_size(void *ptr, isize len) {
memset(ptr, 0, len);