still searching for Java
[MKUltra.git] / test / jni_md.h
blob126c560395e3190a2ca063bb1807213865c756db
1 #ifndef _JAVASOFT_JNI_MD_H_
2 #define _JAVASOFT_JNI_MD_H_
4 #include <cstdint>
6 typedef int32_t jint;
7 typedef int64_t jlong;
8 typedef signed char jbyte;
10 #ifdef __WIN32__
11 #define JNIEXPORT __declspec(dllexport)
12 #define JNIIMPORT __declspec(dllimport)
13 #define JNICALL __stdcall
14 #endif // __WIN32__
16 #ifdef __APPLE__
17 #define JNIEXPORT __attribute__((visibility("default")))
18 #define JNIIMPORT
19 #define JNICALL
20 #endif // __APPLE__
22 #ifdef __linux__
23 #ifndef __has_attribute
24 #define __has_attribute(x) 0
25 #endif
27 #if (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2))) || __has_attribute(visibility)
28 #define JNIEXPORT __attribute__((visibility("default")))
29 #define JNIIMPORT __attribute__((visibility("default")))
30 #else
31 #define JNIEXPORT
32 #define JNIIMPORT
33 #endif
35 #define JNICALL
36 #endif // __linux__
38 #endif // _JAVASOFT_JNI_MD_H_