summaryrefslogtreecommitdiffhomepage
path: root/freetrackclient/freetrackclient.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-02 19:43:51 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-02 19:43:51 +0200
commitd674f5fe1e87596dcb8bae588ae798b4473ce269 (patch)
tree3804985a4f7f7d6f5c694497028e9fa9222beade /freetrackclient/freetrackclient.cpp
parent171c8cdc17ed6b443ff6de5d44b997399d0b03a2 (diff)
Build works now
Diffstat (limited to 'freetrackclient/freetrackclient.cpp')
-rw-r--r--freetrackclient/freetrackclient.cpp19
1 files changed, 3 insertions, 16 deletions
diff --git a/freetrackclient/freetrackclient.cpp b/freetrackclient/freetrackclient.cpp
index ac6148e8..1a591de9 100644
--- a/freetrackclient/freetrackclient.cpp
+++ b/freetrackclient/freetrackclient.cpp
@@ -30,20 +30,7 @@
*/
-#ifdef WIN64
-#pragma comment(linker, "/export:FTGetData")
-#pragma comment(linker, "/export:FTReportName")
-#pragma comment(linker, "/export:FTGetDllVersion")
-#pragma comment(linker, "/export:FTProvider")
-#endif
-
-#ifdef WIN64
-# define FT_DECLSPEC __declspec(dllexport)
-#else
-# define FT_DECLSPEC
-#endif
-
-#define FT_EXPORT(t) extern "C" t FT_DECLSPEC __stdcall
+#define FT_EXPORT(t) extern "C" t __declspec(dllexport) __stdcall
#define NP_AXIS_MAX 16383
#include <stdarg.h>
@@ -53,7 +40,7 @@
#include <windows.h>
#include <tchar.h>
-#include "..\..\FTNOIR_PROTOCOL_FT\FTTypes.h"
+#include "ftnoir_protocol_ft\fttypes.h"
//
// Functions to create/open the file-mapping
@@ -64,7 +51,7 @@ void FTDestroyMapping();
float scale2AnalogLimits( float x, float min_x, float max_x );
float getDegreesFromRads ( float rads );
-#if 1
+#if 0
static FILE *debug_stream = fopen("c:\\FreeTrackClient.log", "a");
#define dbg_report(...) if (debug_stream) { fprintf(debug_stream, __VA_ARGS__); fflush(debug_stream); }
#else