mirror of
https://github.com/corda/corda.git
synced 2025-01-03 19:54:13 +00:00
clean up JNIEXPORT definitions
This commit is contained in:
parent
8e1637ec6b
commit
6710ca85d7
@ -34,9 +34,6 @@
|
||||
# define CREAT creat
|
||||
# define UNLINK unlink
|
||||
# define OPEN_MASK 0
|
||||
|
||||
# undef JNIEXPORT
|
||||
# define JNIEXPORT __attribute__ ((visibility("default")))
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
|
@ -11,12 +11,6 @@
|
||||
|
||||
#ifdef WIN32
|
||||
# include "windows.h"
|
||||
#else
|
||||
# undef JNIEXPORT
|
||||
# define JNIEXPORT __attribute__ ((visibility("default")))
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
# define SO_PREFIX ""
|
||||
#else
|
||||
# define SO_PREFIX "lib"
|
||||
|
@ -5,11 +5,6 @@
|
||||
#include "jni.h"
|
||||
#include "jni-util.h"
|
||||
|
||||
#ifndef WIN32
|
||||
# undef JNIEXPORT
|
||||
# define JNIEXPORT __attribute__ ((visibility("default")))
|
||||
#endif
|
||||
|
||||
extern "C" JNIEXPORT jlong JNICALL
|
||||
Java_java_util_zip_Inflater_make
|
||||
(JNIEnv* e, jclass, jboolean nowrap)
|
||||
|
@ -1,6 +1,13 @@
|
||||
#ifndef JNI_UTIL
|
||||
#define JNI_UTIL
|
||||
|
||||
#undef JNIEXPORT
|
||||
#ifdef __MINGW32__
|
||||
# define JNIEXPORT __declspec(dllexport)
|
||||
#else
|
||||
# define JNIEXPORT __attribute__ ((visibility("default")))
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
|
||||
inline void
|
||||
|
Loading…
Reference in New Issue
Block a user