Fixed typo for Mac OS X builds

This commit is contained in:
Eric Scharff 2007-11-01 14:06:26 -06:00
parent 7f33b7371b
commit 625f0006c9
2 changed files with 5 additions and 1 deletions

View File

@ -5,8 +5,12 @@
#ifdef __MINGW32__
# define JNIEXPORT __declspec(dllexport)
#else
#ifdef __APPLE__
# define JNIEXPORT __attribute__ ((used))
#else
# define JNIEXPORT __attribute__ ((visibility("default")))
#endif
#endif
namespace {

View File

@ -15,7 +15,7 @@
# define JNIEXPORT __declspec(dllexport)
#else
#ifdef __APPLE__
# define JNIEXPORT __attribute__ ((visibility("used")))
# define JNIEXPORT __attribute__ ((used))
#else
# define JNIEXPORT __attribute__ ((visibility("default")))
#endif