diff options
| -rw-r--r-- | src/runtime/java/jpgf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/runtime/java/jpgf.c b/src/runtime/java/jpgf.c index 48bed0f8c..dd29eaf7f 100644 --- a/src/runtime/java/jpgf.c +++ b/src/runtime/java/jpgf.c @@ -4,8 +4,12 @@ #include <gu/mem.h> #include <gu/exn.h> #include <gu/utf8.h> -#include <alloca.h> #include <jni.h> +#ifndef __MINGW32__ +#include <alloca.h> +#else +#include <malloc.h> +#endif #define l2p(x) ((void*) (intptr_t) (x)) #define p2l(x) ((jlong) (intptr_t) (x)) |
