summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_wine/opentrack-wrapper-wine-posix.cxx
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-09-22 15:25:19 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-09-22 15:25:19 +0200
commit69236c0317a30bf100ec4f3d0f8e58fdc565a34b (patch)
tree0e754b9454982efb0b3b9ac40ed769543d87f159 /ftnoir_protocol_wine/opentrack-wrapper-wine-posix.cxx
parentd3d17ad9b662aca4327b7b63ba1824eb14d7874b (diff)
fix Wine proto bitrot
Diffstat (limited to 'ftnoir_protocol_wine/opentrack-wrapper-wine-posix.cxx')
-rw-r--r--ftnoir_protocol_wine/opentrack-wrapper-wine-posix.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/ftnoir_protocol_wine/opentrack-wrapper-wine-posix.cxx b/ftnoir_protocol_wine/opentrack-wrapper-wine-posix.cxx
index 010c4440..ea01ff03 100644
--- a/ftnoir_protocol_wine/opentrack-wrapper-wine-posix.cxx
+++ b/ftnoir_protocol_wine/opentrack-wrapper-wine-posix.cxx
@@ -1,8 +1,12 @@
#define OPENTRACK_COMPAT_BUNDLED
-#ifdef _WIN32
-# undef _WIN32
-#endif
-
#define PortableLockedShm ShmPosix
+#undef _WIN32
+#include "ftnoir_protocol_ft/fttypes.h"
+#include "wine-shm.h"
#include "compat/compat.h"
#include "compat/compat.cpp"
+
+ptr<BasePortableLockedShm> make_shm_posix()
+{
+ return std::make_shared<ShmPosix>(FREETRACK_HEAP, FREETRACK_MUTEX, sizeof(FTHeap));
+}