diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-16 11:29:59 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-16 11:29:59 +0200 |
commit | b0b7c2b0e1762a7c0058e7f507a3b7cc9a03daf6 (patch) | |
tree | 246864539eba1669fc19a2007038dfb692a04788 /ftnoir_protocol_wine | |
parent | dfbe00cb1d9ce4cb52448cf4c1d577fe7b1eaad7 (diff) |
all: use macros for symbol exposure
Diffstat (limited to 'ftnoir_protocol_wine')
-rw-r--r-- | ftnoir_protocol_wine/ftnoir_protocol_wine.cpp | 5 | ||||
-rw-r--r-- | ftnoir_protocol_wine/ftnoir_protocol_wine_dll.cpp | 7 |
2 files changed, 1 insertions, 11 deletions
diff --git a/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp b/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp index 5f80944a..99ad30a2 100644 --- a/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp +++ b/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp @@ -56,7 +56,4 @@ bool FTNoIR_Protocol::correct() return lck_shm.success(); } -extern "C" OPENTRACK_EXPORT void* GetConstructor() -{ - return (IProtocol*) new FTNoIR_Protocol; -} +OPENTRACK_DECLARE_PROTOCOL(FTNoIR_Protocol, FTControls, FTNoIR_ProtocolDll) diff --git a/ftnoir_protocol_wine/ftnoir_protocol_wine_dll.cpp b/ftnoir_protocol_wine/ftnoir_protocol_wine_dll.cpp deleted file mode 100644 index 92faaa94..00000000 --- a/ftnoir_protocol_wine/ftnoir_protocol_wine_dll.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include "ftnoir_protocol_wine.h" -#include "opentrack/plugin-api.hpp" - -extern "C" OPENTRACK_EXPORT Metadata* GetMetadata() -{ - return new FTNoIR_ProtocolDll; -} |