Factored JNIEXPORT into one place. Adopted the visbility attribute that

should allow strip to work on Mac OS X
This commit is contained in:
Eric Scharff
2007-11-01 14:00:22 -06:00
parent 7a4cca45c2
commit 7f33b7371b
4 changed files with 14 additions and 15 deletions

View File

@ -10,6 +10,17 @@
#include "types.h"
#include "math.h"
#undef JNIEXPORT
#ifdef __MINGW32__
# define JNIEXPORT __declspec(dllexport)
#else
#ifdef __APPLE__
# define JNIEXPORT __attribute__ ((visibility("used")))
#else
# define JNIEXPORT __attribute__ ((visibility("default")))
#endif
#endif
#ifdef __i386__
# define LD "d"
#ifdef __APPLE__