diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-01 08:36:28 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-01 08:49:12 +0100 |
commit | cc16fd0121fe79ae1fd9539a606c19827f64bc23 (patch) | |
tree | d141902716ea4b8e563d9e708c3e99671d791f40 /opentrack-compat/shm.h | |
parent | 73921613ddddc8d1f8e0caed21ab8dd490a74eb1 (diff) |
use newly-added preprocessor variable
Diffstat (limited to 'opentrack-compat/shm.h')
-rw-r--r-- | opentrack-compat/shm.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/opentrack-compat/shm.h b/opentrack-compat/shm.h index 17a0d843..7c8a66a9 100644 --- a/opentrack-compat/shm.h +++ b/opentrack-compat/shm.h @@ -18,8 +18,15 @@ #include <unistd.h> #include <sys/types.h> #endif +#include <QtGlobal> -class PortableLockedShm { +#ifdef BUILD_opentrack_compat +# define COMPAT_EXPORT Q_DECL_EXPORT +#else +# define COMPAT_EXPORT Q_DECL_IMPORT +#endif + +class COMPAT_EXPORT PortableLockedShm { public: PortableLockedShm(const char *shmName, const char *mutexName, int mapSize); ~PortableLockedShm(); |