summaryrefslogtreecommitdiff
path: root/tests/modules/libcommon/CommonExportable.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modules/libcommon/CommonExportable.hpp')
-rwxr-xr-xtests/modules/libcommon/CommonExportable.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/modules/libcommon/CommonExportable.hpp b/tests/modules/libcommon/CommonExportable.hpp
new file mode 100755
index 0000000..15abf62
--- /dev/null
+++ b/tests/modules/libcommon/CommonExportable.hpp
@@ -0,0 +1,26 @@
+#ifndef __COMMON_EXPORTABLE_H
+#define __COMMON_EXPORTABLE_H
+
+#ifndef _WIN32
+
+#define COMMON_DLL_VISIBLE
+
+#else
+
+#ifdef SHARED
+
+#ifdef BUILDING_COMMON
+#define COMMON_DLL_VISIBLE __declspec(dllexport)
+#else
+#define COMMON_DLL_VISIBLE __declspec(dllimport)
+#endif
+
+#else
+
+#define COMMON_DLL_VISIBLE
+
+#endif // BUILDING_COMMON
+
+#endif // _WIN32
+
+#endif