mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-07 05:49:27 +00:00
Download required native JNI headers
This commit is contained in:
@@ -25,6 +25,13 @@ MVNDNATIVE_OUT:=target/native-$(OS_NAME)-$(OS_ARCH)
|
||||
|
||||
CCFLAGS:= -I$(MVNDNATIVE_OUT) $(CCFLAGS)
|
||||
|
||||
download-includes:
|
||||
test -d target/inc || mkdir target/inc
|
||||
test -d target/inc/unix || mkdir target/inc/unix
|
||||
test -d target/inc/windows || mkdir target/inc/windows
|
||||
test -f target/inc/jni.h || wget -O target/inc/jni.h https://raw.githubusercontent.com/openjdk/jdk/jdk-11%2B28/src/java.base/share/native/include/jni.h
|
||||
test -f target/inc/unix/jni_md.h || wget -O target/inc/unix/jni_md.h https://raw.githubusercontent.com/openjdk/jdk/jdk-11%2B28/src/java.base/unix/native/include/jni_md.h
|
||||
test -f target/inc/windows/jni_md.h || wget -O target/inc/windows/jni_md.h https://raw.githubusercontent.com/openjdk/jdk/jdk-11%2B28/src/java.base/windows/native/include/jni_md.h
|
||||
|
||||
clean-native:
|
||||
rm -rf $(MVNDNATIVE_OUT)
|
||||
@@ -55,40 +62,40 @@ $(NATIVE_DLL): $(MVNDNATIVE_OUT)/$(LIBNAME)
|
||||
@mkdir -p $(NATIVE_TARGET_DIR)
|
||||
cp $< $(NATIVE_TARGET_DIR)/$(LIBNAME)
|
||||
|
||||
linux-x86:
|
||||
linux-x86: download-includes
|
||||
./docker/dockcross-linux-x86 bash -c 'make clean-native native OS_NAME=Linux OS_ARCH=x86'
|
||||
|
||||
linux-x86_64:
|
||||
linux-x86_64: download-includes
|
||||
docker run -it --rm -v $$PWD:/workdir -e CROSS_TRIPLE=x86_64-linux-gnu multiarch/crossbuild make clean-native native OS_NAME=Linux OS_ARCH=x86_64
|
||||
|
||||
linux-arm:
|
||||
linux-arm: download-includes
|
||||
docker run -it --rm -v $$PWD:/workdir -e CROSS_TRIPLE=arm-linux-gnueabi multiarch/crossbuild make clean-native native OS_NAME=Linux OS_ARCH=arm
|
||||
|
||||
linux-armv7:
|
||||
linux-armv7: download-includes
|
||||
docker run -it --rm -v $$PWD:/workdir -e CROSS_TRIPLE=arm-linux-gnueabihf multiarch/crossbuild make clean-native native OS_NAME=Linux OS_ARCH=armv7
|
||||
|
||||
linux-arm64:
|
||||
linux-arm64: download-includes
|
||||
docker run -it --rm -v $$PWD:/workdir -e CROSS_TRIPLE=aarch64-linux-gnu multiarch/crossbuild make clean-native native OS_NAME=Linux OS_ARCH=arm64
|
||||
|
||||
linux-ppc64:
|
||||
linux-ppc64: download-includes
|
||||
docker run -it --rm -v $$PWD:/workdir -e CROSS_TRIPLE=powerpc64le-linux-gnu multiarch/crossbuild make clean-native native OS_NAME=Linux OS_ARCH=ppc64
|
||||
|
||||
win-x86:
|
||||
win-x86: download-includes
|
||||
./docker/dockcross-windows-static-x86 bash -c 'make clean-native native CROSS_PREFIX=i686-w64-mingw32.static- OS_NAME=Windows OS_ARCH=x86'
|
||||
|
||||
win-x86_64:
|
||||
win-x86_64: download-includes
|
||||
./docker/dockcross-windows-static-x64 bash -c 'make clean-native native CROSS_PREFIX=x86_64-w64-mingw32.static- OS_NAME=Windows OS_ARCH=x86_64'
|
||||
|
||||
mac-x86:
|
||||
mac-x86: download-includes
|
||||
docker run -it --rm -v $$PWD:/workdir -e CROSS_TRIPLE=i386-apple-darwin multiarch/crossbuild make clean-native native OS_NAME=Mac OS_ARCH=x86
|
||||
|
||||
mac-x86_64:
|
||||
mac-x86_64: download-includes
|
||||
docker run -it --rm -v $$PWD:/workdir -e CROSS_TRIPLE=x86_64-apple-darwin multiarch/crossbuild make clean-native native OS_NAME=Mac OS_ARCH=x86_64
|
||||
|
||||
freebsd-x86:
|
||||
freebsd-x86: download-includes
|
||||
docker run -it --rm -v $$PWD:/workdir empterdose/freebsd-cross-build:9.3 make clean-native native CROSS_PREFIX=i386-freebsd9- OS_NAME=FreeBSD OS_ARCH=x86
|
||||
|
||||
freebsd-x86_64:
|
||||
freebsd-x86_64: download-includes
|
||||
docker run -it --rm -v $$PWD:/workdir empterdose/freebsd-cross-build:9.3 make clean-native native CROSS_PREFIX=x86_64-freebsd9- OS_NAME=FreeBSD OS_ARCH=x86_64
|
||||
|
||||
#sparcv9:
|
||||
|
@@ -29,105 +29,105 @@ CROSS_PREFIX :=
|
||||
|
||||
Default_CC := $(CROSS_PREFIX)gcc
|
||||
Default_STRIP := $(CROSS_PREFIX)strip
|
||||
Default_CCFLAGS := -I$(JAVA_HOME)/include -Isrc/main/lib/inc_linux -Os -fPIC -fvisibility=hidden
|
||||
Default_CCFLAGS := -I$(JAVA_HOME)/include -Itarget/inc -Itarget/inc/unix -Os -fPIC -fvisibility=hidden
|
||||
Default_LINKFLAGS := -shared
|
||||
Default_LIBNAME := libmvndnative.so
|
||||
Default_JANSI_FLAGS :=
|
||||
|
||||
Linux-x86_CC := $(CROSS_PREFIX)gcc
|
||||
Linux-x86_STRIP := $(CROSS_PREFIX)strip
|
||||
Linux-x86_CCFLAGS := -I$(JAVA_HOME)/include -Isrc/main/lib/inc_linux -Os -fPIC -m32 -fvisibility=hidden
|
||||
Linux-x86_CCFLAGS := -I$(JAVA_HOME)/include -Itarget/inc -Itarget/inc/unix -Os -fPIC -m32 -fvisibility=hidden
|
||||
Linux-x86_LINKFLAGS := -shared -static-libgcc
|
||||
Linux-x86_LIBNAME := libmvndnative.so
|
||||
Linux-x86_JANSI_FLAGS :=
|
||||
|
||||
Linux-x86_64_CC := $(CROSS_PREFIX)gcc
|
||||
Linux-x86_64_STRIP := $(CROSS_PREFIX)strip
|
||||
Linux-x86_64_CCFLAGS := -Isrc/main/lib/inc_linux -I$(JAVA_HOME)/include -Os -fPIC -m64 -fvisibility=hidden
|
||||
Linux-x86_64_CCFLAGS := -I$(JAVA_HOME)/include -Itarget/inc -Itarget/inc/unix -Os -fPIC -m64 -fvisibility=hidden
|
||||
Linux-x86_64_LINKFLAGS := -shared -static-libgcc
|
||||
Linux-x86_64_LIBNAME := libmvndnative.so
|
||||
Linux-x86_64_JANSI_FLAGS :=
|
||||
|
||||
Linux-arm_CC := $(CROSS_PREFIX)gcc
|
||||
Linux-arm_STRIP := $(CROSS_PREFIX)strip
|
||||
Linux-arm_CCFLAGS := -I$(JAVA_HOME)/include -Isrc/main/lib/inc_linux -Os -fPIC -mfloat-abi=softfp -mfpu=vfp -fvisibility=hidden
|
||||
Linux-arm_CCFLAGS := -I$(JAVA_HOME)/include -Itarget/inc -Itarget/inc/unix -Os -fPIC -mfloat-abi=softfp -mfpu=vfp -fvisibility=hidden
|
||||
Linux-arm_LINKFLAGS := -shared -static-libgcc
|
||||
Linux-arm_LIBNAME := libmvndnative.so
|
||||
Linux-arm_JANSI_FLAGS :=
|
||||
|
||||
Linux-armv6_CC := $(CROSS_PREFIX)gcc
|
||||
Linux-armv6_STRIP := $(CROSS_PREFIX)strip
|
||||
Linux-armv6_CCFLAGS := -I$(JAVA_HOME)/include -Isrc/main/lib/inc_linux -Os -mfloat-abi=hard -mfpu=vfp -fPIC -fvisibility=hidden
|
||||
Linux-armv6_CCFLAGS := -I$(JAVA_HOME)/include -Itarget/inc -Itarget/inc/unix -Os -mfloat-abi=hard -mfpu=vfp -fPIC -fvisibility=hidden
|
||||
Linux-armv6_LINKFLAGS := -shared -static-libgcc
|
||||
Linux-armv6_LIBNAME := libmvndnative.so
|
||||
Linux-armv6_JANSI_FLAGS :=
|
||||
|
||||
Linux-armv7_CC := $(CROSS_PREFIX)gcc
|
||||
Linux-armv7_STRIP := $(CROSS_PREFIX)strip
|
||||
Linux-armv7_CCFLAGS := -I$(JAVA_HOME)/include -Isrc/main/lib/inc_linux -Os -mfloat-abi=hard -mfpu=vfp -fPIC -fvisibility=hidden
|
||||
Linux-armv7_CCFLAGS := -I$(JAVA_HOME)/include -Itarget/inc -Itarget/inc/unix -Os -mfloat-abi=hard -mfpu=vfp -fPIC -fvisibility=hidden
|
||||
Linux-armv7_LINKFLAGS := -shared -static-libgcc
|
||||
Linux-armv7_LIBNAME := libmvndnative.so
|
||||
Linux-armv7_JANSI_FLAGS :=
|
||||
|
||||
Linux-arm64_CC := $(CROSS_PREFIX)gcc
|
||||
Linux-arm64_STRIP := $(CROSS_PREFIX)strip
|
||||
Linux-arm64_CCFLAGS := -I$(JAVA_HOME)/include -Isrc/main/lib/inc_linux -Os -mfloat-abi=hard -mfpu=vfp -fPIC -fvisibility=hidden
|
||||
Linux-arm64_CCFLAGS := -I$(JAVA_HOME)/include -Itarget/inc -Itarget/inc/unix -Os -mfloat-abi=hard -mfpu=vfp -fPIC -fvisibility=hidden
|
||||
Linux-arm64_LINKFLAGS := -shared -static-libgcc
|
||||
Linux-arm64_LIBNAME := libmvndnative.so
|
||||
Linux-arm64_JANSI_FLAGS :=
|
||||
|
||||
Linux-ppc64_CC := $(CROSS_PREFIX)gcc
|
||||
Linux-ppc64_STRIP := $(CROSS_PREFIX)strip
|
||||
Linux-ppc64_CCFLAGS := -I$(JAVA_HOME)/include -Isrc/main/lib/inc_linux -Os -fPIC -fvisibility=hidden
|
||||
Linux-ppc64_CCFLAGS := -I$(JAVA_HOME)/include -Itarget/inc -Itarget/inc/unix -Os -fPIC -fvisibility=hidden
|
||||
Linux-ppc64_LINKFLAGS := -shared -static-libgcc
|
||||
Linux-ppc64_LIBNAME := libmvndnative.so
|
||||
Linux-ppc64_JANSI_FLAGS :=
|
||||
|
||||
DragonFly-x86_64_CC := $(CROSS_PREFIX)cc
|
||||
DragonFly-x86_64_STRIP := $(CROSS_PREFIX)strip
|
||||
DragonFly-x86_64_CCFLAGS := -I$(JAVA_HOME)/include -Isrc/main/lib/inc_linux -O2 -fPIC -fvisibility=hidden
|
||||
DragonFly-x86_64_CCFLAGS := -I$(JAVA_HOME)/include -Itarget/inc -Itarget/inc/unix -O2 -fPIC -fvisibility=hidden
|
||||
DragonFly-x86_64_LINKFLAGS := -shared
|
||||
DragonFly-x86_64_LIBNAME := libmvndnative.so
|
||||
DragonFly-x86_64_JANSI_FLAGS :=
|
||||
|
||||
FreeBSD-x86_CC := $(CROSS_PREFIX)gcc
|
||||
FreeBSD-x86_STRIP := $(CROSS_PREFIX)strip
|
||||
FreeBSD-x86_CCFLAGS := -I$(JAVA_HOME)/include -Isrc/main/lib/inc_linux -Os -fPIC -fvisibility=hidden
|
||||
FreeBSD-x86_CCFLAGS := -I$(JAVA_HOME)/include -Itarget/inc -Itarget/inc/unix -Os -fPIC -fvisibility=hidden
|
||||
FreeBSD-x86_LINKFLAGS := -shared
|
||||
FreeBSD-x86_LIBNAME := libmvndnative.so
|
||||
FreeBSD-x86_JANSI_FLAGS :=
|
||||
|
||||
FreeBSD-x86_64_CC := $(CROSS_PREFIX)gcc
|
||||
FreeBSD-x86_64_STRIP := $(CROSS_PREFIX)strip
|
||||
FreeBSD-x86_64_CCFLAGS := -I$(JAVA_HOME)/include -Isrc/main/lib/inc_linux -Os -fPIC -fvisibility=hidden
|
||||
FreeBSD-x86_64_CCFLAGS := -I$(JAVA_HOME)/include -Itarget/inc -Itarget/inc/unix -Os -fPIC -fvisibility=hidden
|
||||
FreeBSD-x86_64_LINKFLAGS := -shared
|
||||
FreeBSD-x86_64_LIBNAME := libmvndnative.so
|
||||
FreeBSD-x86_64_JANSI_FLAGS :=
|
||||
|
||||
OpenBSD-x86_64_CC := $(CROSS_PREFIX)gcc
|
||||
OpenBSD-x86_64_STRIP := $(CROSS_PREFIX)strip
|
||||
OpenBSD-x86_64_CCFLAGS := -I$(JAVA_HOME)/include -Isrc/main/lib/inc_linux -Os -fPIC -fvisibility=hidden
|
||||
OpenBSD-x86_64_CCFLAGS := -I$(JAVA_HOME)/include -Itarget/inc -Itarget/inc/unix -Os -fPIC -fvisibility=hidden
|
||||
OpenBSD-x86_64_LINKFLAGS := -shared
|
||||
OpenBSD-x86_64_LIBNAME := libmvndnative.so
|
||||
OpenBSD-x86_64_JANSI_FLAGS :=
|
||||
|
||||
SunOS-sparcv9_CC := $(CROSS_PREFIX)gcc
|
||||
SunOS-sparcv9_STRIP := $(CROSS_PREFIX)strip
|
||||
SunOS-sparcv9_CCFLAGS := -I$(JAVA_HOME)/include -Isrc/main/lib/inc_linux -O2s-fPIC -m64 -fvisibility=hidden
|
||||
SunOS-sparcv9_CCFLAGS := -I$(JAVA_HOME)/include -Itarget/inc -Itarget/inc/unix -O2s-fPIC -m64 -fvisibility=hidden
|
||||
SunOS-sparcv9_LINKFLAGS := -shared -static-libgcc
|
||||
SunOS-sparcv9_LIBNAME := libmvndnative.so
|
||||
SunOS-sparcv9_JANSI_FLAGS :=
|
||||
|
||||
HPUX-ia64_32_CC := cc
|
||||
HPUX-ia64_32_STRIP := strip
|
||||
HPUX-ia64_32_CCFLAGS := -Isrc/main/lib/inc_linux +Osize +z -Bhidden
|
||||
HPUX-ia64_32_CCFLAGS := -Itarget/inc -Itarget/inc/unix +Osize +z -Bhidden
|
||||
HPUX-ia64_32_LINKFLAGS := -b
|
||||
HPUX-ia64_32_LIBNAME := libmvndnative.so
|
||||
HPUX-ia64_32_JANSI_FLAGS :=
|
||||
|
||||
Mac-x86_CC := gcc
|
||||
Mac-x86_STRIP := strip -x
|
||||
Mac-x86_CCFLAGS := -I$(JAVA_HOME)/include -Isrc/main/lib/inc_mac -Os -fPIC -mmacosx-version-min=10.4 -fvisibility=hidden
|
||||
Mac-x86_CCFLAGS := -I$(JAVA_HOME)/include -Itarget/inc -Itarget/inc/unix -Os -fPIC -mmacosx-version-min=10.4 -fvisibility=hidden
|
||||
Mac-x86_LINKFLAGS := -dynamiclib
|
||||
Mac-x86_LIBNAME := libmvndnative.jnilib
|
||||
Mac-x86_JANSI_FLAGS := -DJANSI_ENABLE_LOCKING_STYLE=0
|
||||
@@ -138,21 +138,21 @@ MAC_SDK := /Developer/SDKs/MacOSX10.10.sdk
|
||||
ifeq ($(wildcard MAC_SDK),)
|
||||
MAC_SDK := /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
|
||||
endif
|
||||
Mac-x86_64_CCFLAGS := -I$(MAC_SDK)/System/Library/Frameworks/JavaVM.framework/Headers -Isrc/main/lib/inc_mac -Os -fPIC -mmacosx-version-min=10.6 -fvisibility=hidden
|
||||
Mac-x86_64_CCFLAGS := -I$(MAC_SDK)/System/Library/Frameworks/JavaVM.framework/Headers -Itarget/inc -Itarget/inc/unix -Os -fPIC -mmacosx-version-min=10.6 -fvisibility=hidden
|
||||
Mac-x86_64_LINKFLAGS := -dynamiclib
|
||||
Mac-x86_64_LIBNAME := libmvndnative.jnilib
|
||||
Mac-x86_64_JANSI_FLAGS :=
|
||||
|
||||
Windows-x86_CC := $(CROSS_PREFIX)gcc
|
||||
Windows-x86_STRIP := $(CROSS_PREFIX)strip
|
||||
Windows-x86_CCFLAGS := -D_JNI_IMPLEMENTATION_ -Isrc/main/lib/inc_win -Os
|
||||
Windows-x86_CCFLAGS := -D_JNI_IMPLEMENTATION_ -Itarget/inc -Itarget/inc/windows -Os
|
||||
Windows-x86_LINKFLAGS := -Wl,--kill-at -shared -static-libgcc
|
||||
Windows-x86_LIBNAME := mvndnative.dll
|
||||
Windows-x86_JANSI_FLAGS :=
|
||||
|
||||
Windows-x86_64_CC := $(CROSS_PREFIX)gcc
|
||||
Windows-x86_64_STRIP := $(CROSS_PREFIX)strip
|
||||
Windows-x86_64_CCFLAGS := -D_JNI_IMPLEMENTATION_ -Isrc/main/lib/inc_win -Os
|
||||
Windows-x86_64_CCFLAGS := -D_JNI_IMPLEMENTATION_ -Itarget/inc -Itarget/inc/windows -Os
|
||||
Windows-x86_64_LINKFLAGS := -Wl,--kill-at -shared -static-libgcc
|
||||
Windows-x86_64_LIBNAME := mvndnative.dll
|
||||
Windows-x86_64_JANSI_FLAGS :=
|
||||
|
@@ -1,56 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
#ifndef _JAVASOFT_JNI_MD_H_
|
||||
#define _JAVASOFT_JNI_MD_H_
|
||||
|
||||
#ifndef __has_attribute
|
||||
#define __has_attribute(x) 0
|
||||
#endif
|
||||
#if (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2))) || __has_attribute(visibility)
|
||||
#ifdef ARM
|
||||
#define JNIEXPORT __attribute__((externally_visible,visibility("default")))
|
||||
#define JNIIMPORT __attribute__((externally_visible,visibility("default")))
|
||||
#else
|
||||
#define JNIEXPORT __attribute__((visibility("default")))
|
||||
#define JNIIMPORT __attribute__((visibility("default")))
|
||||
#endif
|
||||
#else
|
||||
#define JNIEXPORT
|
||||
#define JNIIMPORT
|
||||
#endif
|
||||
|
||||
#define JNICALL
|
||||
|
||||
typedef int jint;
|
||||
#ifdef _LP64
|
||||
typedef long jlong;
|
||||
#else
|
||||
typedef long long jlong;
|
||||
#endif
|
||||
|
||||
typedef signed char jbyte;
|
||||
|
||||
#endif /* !_JAVASOFT_JNI_MD_H_ */
|
@@ -1,56 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
#ifndef _JAVASOFT_JNI_MD_H_
|
||||
#define _JAVASOFT_JNI_MD_H_
|
||||
|
||||
#ifndef __has_attribute
|
||||
#define __has_attribute(x) 0
|
||||
#endif
|
||||
#if (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2))) || __has_attribute(visibility)
|
||||
#ifdef ARM
|
||||
#define JNIEXPORT __attribute__((externally_visible,visibility("default")))
|
||||
#define JNIIMPORT __attribute__((externally_visible,visibility("default")))
|
||||
#else
|
||||
#define JNIEXPORT __attribute__((visibility("default")))
|
||||
#define JNIIMPORT __attribute__((visibility("default")))
|
||||
#endif
|
||||
#else
|
||||
#define JNIEXPORT
|
||||
#define JNIIMPORT
|
||||
#endif
|
||||
|
||||
#define JNICALL
|
||||
|
||||
typedef int jint;
|
||||
#ifdef _LP64
|
||||
typedef long jlong;
|
||||
#else
|
||||
typedef long long jlong;
|
||||
#endif
|
||||
|
||||
typedef signed char jbyte;
|
||||
|
||||
#endif /* !_JAVASOFT_JNI_MD_H_ */
|
@@ -1,38 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 1996, 1998, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
#ifndef _JAVASOFT_JNI_MD_H_
|
||||
#define _JAVASOFT_JNI_MD_H_
|
||||
|
||||
#define JNIEXPORT __declspec(dllexport)
|
||||
#define JNIIMPORT __declspec(dllimport)
|
||||
#define JNICALL __stdcall
|
||||
|
||||
// 'long' is always 32 bit on windows so this matches what jdk expects
|
||||
typedef long jint;
|
||||
typedef __int64 jlong;
|
||||
typedef signed char jbyte;
|
||||
|
||||
#endif /* !_JAVASOFT_JNI_MD_H_ */
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user