mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-10 13:29:32 -06:00
added #ifdef to detect MinGW in the Java binding and to import the right header for alloca
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user