revert all __attribute__ ((externally_visible)) changes because it's not clear yet how to detect whether it's supported

This commit is contained in:
Joel Dice 2009-10-27 10:35:26 -06:00
parent f57d80f1b7
commit 1fd00dd55d
3 changed files with 8 additions and 32 deletions

View File

@ -20,21 +20,11 @@
#if (defined __MINGW32__) || (defined _MSC_VER)
# define PLATFORM_WINDOWS
# define PATH_SEPARATOR ';'
# ifdef __MINGW32__
# define JNIEXPORT __declspec(dllexport) \
__attribute__ ((externally_visible))
# else // not __MINGW32__
# define JNIEXPORT __declspec(dllexport)
# endif // not __MINGW32__
# define JNIEXPORT __declspec(dllexport)
#else // not (defined __MINGW32__) || (defined _MSC_VER)
# define PLATFORM_POSIX
# define PATH_SEPARATOR ':'
# ifdef __APPLE__
# define JNIEXPORT __attribute__ ((visibility("default")))
# else // not __APPLE__
# define JNIEXPORT __attribute__ ((visibility("default"))) \
__attribute__ ((externally_visible))
# endif // not __APPLE__
# define JNIEXPORT __attribute__ ((visibility("default")))
#endif // not (defined __MINGW32__) || (defined _MSC_VER)
#ifdef _MSC_VER

View File

@ -25,19 +25,10 @@ extern "C" void __cxa_pure_virtual(void) { abort(); }
#endif // not _MSC_VER
#if (defined __MINGW32__) || (defined _MSC_VER)
# ifdef __MINGW32__
# define EXPORT __declspec(dllexport) __attribute__ ((externally_visible))
# else // not __MINGW32__
# define EXPORT __declspec(dllexport)
# endif // not __MINGW32__
#else // not (defined __MINGW32__) || (defined _MSC_VER)
# ifdef __APPLE__
# define EXPORT __attribute__ ((visibility("default")))
# else // not __APPLE__
# define EXPORT __attribute__ ((visibility("default"))) \
__attribute__ ((externally_visible))
# endif // not __APPLE__
#endif // not (defined __MINGW32__) || (defined _MSC_VER)
# define EXPORT __declspec(dllexport)
#else
# define EXPORT __attribute__ ((visibility("default")))
#endif
#ifdef BOOT_IMAGE

View File

@ -90,15 +90,10 @@ typedef uint64_t uintptr_t;
#undef JNIEXPORT
#ifdef PLATFORM_WINDOWS
# define JNIEXPORT __declspec(dllexport) __attribute__ ((externally_visible))
# define JNIEXPORT __declspec(dllexport)
# define PATH_SEPARATOR ';'
#else // not PLATFORM_WINDOWS
# ifdef __APPLE__
# define JNIEXPORT __attribute__ ((visibility("default")))
# else // not __APPLE__
# define JNIEXPORT __attribute__ ((visibility("default"))) \
__attribute__ ((externally_visible))
# endif // not __APPLE__
# define JNIEXPORT __attribute__ ((visibility("default")))
# define PATH_SEPARATOR ':'
#endif // not PLATFORM_WINDOWS