added #ifdef to detect MinGW in the Java binding and to import the right header for alloca

This commit is contained in:
kr.angelov
2013-11-07 08:08:41 +00:00
parent e79f39b774
commit 62dee6c805

View File

@@ -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))