forgot to conditionally include malloc.h for alloca on watcom and msvc
authorJohn Tsiombikas <nuclear@mutantstargoat.com>
Mon, 3 Oct 2016 05:23:00 +0000 (08:23 +0300)
committerJohn Tsiombikas <nuclear@mutantstargoat.com>
Mon, 3 Oct 2016 05:23:00 +0000 (08:23 +0300)
src/polyfill.c

index 122b234..80bfee5 100644 (file)
@@ -2,7 +2,11 @@
 #include <stdlib.h>
 #include <string.h>
 #include <assert.h>
+#if defined(__WATCOMC__) || defined(_MSC_VER)
+#include <malloc.h>
+#else
 #include <alloca.h>
+#endif
 #include "polyfill.h"
 #include "gfxutil.h"
 #include "demo.h"