summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/c/gu/string.c')
-rw-r--r--src/runtime/c/gu/string.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/c/gu/string.c b/src/runtime/c/gu/string.c
index 9a1677745..969ac709a 100644
--- a/src/runtime/c/gu/string.c
+++ b/src/runtime/c/gu/string.c
@@ -6,7 +6,9 @@
#include <gu/utf8.h>
#include <gu/assert.h>
#include <stdlib.h>
+#ifdef __MINGW32__
#include <malloc.h>
+#endif
struct GuStringBuf {
GuBuf* buf;