Fixes for compiling under msys2
[dosdemo] / tools / csprite / src / main.c
index a59aa3e..c549b3e 100644 (file)
@@ -3,7 +3,11 @@
 #include <string.h>
 #include <stdint.h>
 #include <assert.h>
+#ifdef WIN32
+#include <malloc.h>
+#else
 #include <alloca.h>
+#endif
 #include "image.h"
 
 struct rect {