From 62dee6c805e063705fb6a7be2251a7a90bacfaaf Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Thu, 7 Nov 2013 08:08:41 +0000 Subject: [PATCH] added #ifdef to detect MinGW in the Java binding and to import the right header for alloca --- src/runtime/java/jpgf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 #include #include -#include #include +#ifndef __MINGW32__ +#include +#else +#include +#endif #define l2p(x) ((void*) (intptr_t) (x)) #define p2l(x) ((jlong) (intptr_t) (x))