|
@@ -192,6 +192,10 @@
|
|
|
#define JPH_EXPORT __declspec(dllexport)
|
|
|
#else
|
|
|
#define JPH_EXPORT __attribute__ ((visibility ("default")))
|
|
|
+ #if defined(JPH_COMPILER_GCC)
|
|
|
+ // Prevents an issue with GCC attribute parsing (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69585)
|
|
|
+ #define JPH_EXPORT_GCC_BUG_WORKAROUND [[gnu::visibility("default")]]
|
|
|
+ #endif
|
|
|
#endif
|
|
|
#else
|
|
|
// When linking against Jolt, we must import these symbols
|
|
@@ -199,6 +203,10 @@
|
|
|
#define JPH_EXPORT __declspec(dllimport)
|
|
|
#else
|
|
|
#define JPH_EXPORT __attribute__ ((visibility ("default")))
|
|
|
+ #if defined(JPH_COMPILER_GCC)
|
|
|
+ // Prevents an issue with GCC attribute parsing (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69585)
|
|
|
+ #define JPH_EXPORT_GCC_BUG_WORKAROUND [[gnu::visibility("default")]]
|
|
|
+ #endif
|
|
|
#endif
|
|
|
#endif
|
|
|
#else
|
|
@@ -206,6 +214,10 @@
|
|
|
#define JPH_EXPORT
|
|
|
#endif
|
|
|
|
|
|
+#ifndef JPH_EXPORT_GCC_BUG_WORKAROUND
|
|
|
+ #define JPH_EXPORT_GCC_BUG_WORKAROUND JPH_EXPORT
|
|
|
+#endif
|
|
|
+
|
|
|
// Macro used by the RTTI macros to not export a function
|
|
|
#define JPH_NO_EXPORT
|
|
|
|