clean up JNIEXPORT definitions

This commit is contained in:
Joel Dice 2007-10-26 18:20:37 -06:00
parent 8e1637ec6b
commit 6710ca85d7
4 changed files with 7 additions and 14 deletions

View File

@ -34,9 +34,6 @@
# define CREAT creat
# define UNLINK unlink
# define OPEN_MASK 0
# undef JNIEXPORT
# define JNIEXPORT __attribute__ ((visibility("default")))
#endif
namespace {

View File

@ -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"

View File

@ -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)

View File

@ -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