java: fix macOS binding generation

`/usr/include/sys/cdefs.h:74:25: warning: #warning "Unsupported compiler detected"`

is solved by by tricking cdefs.h into thinking we're gcc,
similar to https://github.com/nativelibs4java/JNAerator/issues/8#issuecomment-81965369

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
This commit is contained in:
Alexander Bezzubov 2018-10-21 15:37:31 +02:00
parent f8d128eeaa
commit 115a7bdc64
No known key found for this signature in database
GPG Key ID: 8039F5787EFCD05D

View File

@ -19,6 +19,7 @@ $(JAR): $(RESOURCES_DIR) $(JNAERATOR_JAR)
-library enry \
$(HEADER_FILE) \
-I/usr/lib/gcc/x86_64-linux-gnu/4.8/include \
-D__GNUC__=4 \
-o $(JARS_DIR) \
-mode StandaloneJar \
-runtime JNA;