Browse Source

Add ifdef block

gingerBill 2 years ago
parent
commit
f2ec438166
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/common_memory.cpp

+ 2 - 0
src/common_memory.cpp

@@ -1,4 +1,6 @@
+#if defined(GB_SYSTEM_LINUX)
 #include <malloc.h>
 #include <malloc.h>
+#endif
 
 
 gb_internal gb_inline void zero_size(void *ptr, isize len) {
 gb_internal gb_inline void zero_size(void *ptr, isize len) {
 	memset(ptr, 0, len);
 	memset(ptr, 0, len);