summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat/shm.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-11-01 11:28:17 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-11-01 11:28:17 +0100
commit0424a2802aec3600774ba9347c49312bb09b8cfe (patch)
treeea2e3d9fc0634e235b997b1b6054898a9478f9b2 /opentrack-compat/shm.h
parent5a2ddaf39cf5ad86cf43d8a01f51989b5e3afa49 (diff)
all: adjust options.hpp move to compat
Diffstat (limited to 'opentrack-compat/shm.h')
-rw-r--r--opentrack-compat/shm.h22
1 files changed, 3 insertions, 19 deletions
diff --git a/opentrack-compat/shm.h b/opentrack-compat/shm.h
index 28bda986..c62976bd 100644
--- a/opentrack-compat/shm.h
+++ b/opentrack-compat/shm.h
@@ -22,29 +22,13 @@
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wattributes"
-#ifdef __GNUC__
-# define COMPAT_GNUC_VISIBILITY __attribute__ ((visibility ("default")))
-#else
-# define COMPAT_GNUC_VISIBILITY
-#endif
-
#ifdef BUILD_compat
-# ifdef _WIN32
-# define COMPAT_WIN32_EXPORT __declspec(dllexport)
-# else
-# define COMPAT_WIN32_EXPORT
-# endif
+# include "compat-export.hpp"
#else
-# ifdef _WIN32
-# define COMPAT_WIN32_EXPORT __declspec(dllimport)
-# else
-# define COMPAT_WIN32_EXPORT
-# endif
+# include "compat-import.hpp"
#endif
-#define COMPAT_EXPORT COMPAT_WIN32_EXPORT COMPAT_GNUC_VISIBILITY
-
-class COMPAT_EXPORT PortableLockedShm {
+class OPENTRACK_COMPAT_EXPORT PortableLockedShm {
public:
PortableLockedShm(const char *shmName, const char *mutexName, int mapSize);
~PortableLockedShm();