summaryrefslogtreecommitdiff
path: root/public/include/XMP_Environment.h
diff options
context:
space:
mode:
Diffstat (limited to 'public/include/XMP_Environment.h')
-rw-r--r--public/include/XMP_Environment.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/public/include/XMP_Environment.h b/public/include/XMP_Environment.h
index b7765b7..d8bab98 100644
--- a/public/include/XMP_Environment.h
+++ b/public/include/XMP_Environment.h
@@ -133,15 +133,56 @@
// =================================================================================================
// Macintosh Specific Settings
// ===========================
+#if (XMP_MacBuild)
+ #define XMP_HELPER_DLL_IMPORT __attribute__((visibility("default")))
+ #define XMP_HELPER_DLL_EXPORT __attribute__((visibility("default")))
+ #define XMP_HELPER_DLL_PRIVATE __attribute__((visibility("hidden")))
+#endif
// =================================================================================================
// Windows Specific Settings
// =========================
+#if (XMP_WinBuild)
+ #define XMP_HELPER_DLL_IMPORT
+ #define XMP_HELPER_DLL_EXPORT
+ #define XMP_HELPER_DLL_PRIVATE
+#endif
// =================================================================================================
// UNIX Specific Settings
// ======================
+#if (XMP_UNIXBuild)
+ #define XMP_HELPER_DLL_IMPORT
+ #define XMP_HELPER_DLL_EXPORT
+ #define XMP_HELPER_DLL_PRIVATE
+#endif
+
+// =================================================================================================
+// IOS Specific Settings
+// ===========================
+#if (XMP_iOSBuild)
+ #include <TargetConditionals.h>
+ #if (TARGET_CPU_ARM)
+ #define XMP_IOS_ARM 1
+ #else
+ #define XMP_IOS_ARM 0
+ #endif
+ #define XMP_HELPER_DLL_IMPORT __attribute__((visibility("default")))
+ #define XMP_HELPER_DLL_EXPORT __attribute__((visibility("default")))
+ #define XMP_HELPER_DLL_PRIVATE __attribute__((visibility("hidden")))
+#endif
// =================================================================================================
+#if (XMP_DynamicBuild)
+ #define XMP_PUBLIC XMP_HELPER_DLL_EXPORT
+ #define XMP_PRIVATE XMP_HELPER_DLL_PRIVATE
+#elif (XMP_StaticBuild)
+ #define XMP_PUBLIC
+ #define XMP_PRIVATE
+#else
+ #define XMP_PUBLIC XMP_HELPER_DLL_IMPORT
+ #define XMP_PRIVATE XMP_HELPER_DLL_PRIVATE
+#endif
+
#endif // __XMP_Environment_h__