summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp
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/ftnoir_protocol_wine.cpp
parentd3d17ad9b662aca4327b7b63ba1824eb14d7874b (diff)
fix Wine proto bitrot
Diffstat (limited to 'ftnoir_protocol_wine/ftnoir_protocol_wine.cpp')
-rw-r--r--ftnoir_protocol_wine/ftnoir_protocol_wine.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp b/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp
index 3208795c..8ebc394d 100644
--- a/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp
+++ b/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp
@@ -3,11 +3,12 @@
#include <sys/mman.h>
#include <sys/stat.h> /* For mode constants */
#include <fcntl.h> /* For O_* constants */
+#include "ftnoir_csv/csv.h"
FTNoIR_Protocol::FTNoIR_Protocol() : lck_shm(WINE_SHM_NAME, WINE_MTX_NAME, sizeof(WineSHM)), shm(NULL), gameid(0)
{
if (lck_shm.success()) {
- shm = (WineSHM*) lck_shm.mem;
+ shm = (WineSHM*) lck_shm.ptr();
memset(shm, 0, sizeof(*shm));
}
wrapper.start("wine", QStringList() << (QCoreApplication::applicationDirPath() + "/opentrack-wrapper-wine.exe.so"));
@@ -55,7 +56,7 @@ bool FTNoIR_Protocol::checkServerInstallationOK()
return lck_shm.success();
}
-extern "C" FTNOIR_PROTOCOL_BASE_EXPORT void* CALLING_CONVENTION GetConstructor()
+extern "C" OPENTRACK_EXPORT void* CALLING_CONVENTION GetConstructor()
{
return (IProtocol*) new FTNoIR_Protocol;
}