summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-20 05:29:23 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-20 05:29:23 +0200
commit1f79db85108ff4e5743665423527810b8099d128 (patch)
treeaa0a1d34692fc59a23f1aaeb9f9d4e92ef6c28f5
parent0f1b798fc437f78825e5dc73d011f5605a440036 (diff)
freetrackclient: fix for 64-bit
-rw-r--r--freetrackclient/freetrackclient.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/freetrackclient/freetrackclient.c b/freetrackclient/freetrackclient.c
index 7f085af4..2049d91e 100644
--- a/freetrackclient/freetrackclient.c
+++ b/freetrackclient/freetrackclient.c
@@ -32,7 +32,12 @@
#include "fttypes.h"
-#define FT_EXPORT(t) t __stdcall
+#if !defined _WIN64
+# define FT_EXPORT(t) t __stdcall
+#else
+# define FT_EXPORT(t) __declspec(dllexport) t
+#endif
+
#if 0
# include <stdio.h>
@@ -110,10 +115,10 @@ FT_EXPORT(const char*) FTProvider(void)
return dllProvider;
}
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined _WIN64
#pragma comment (linker, "/export:FTReportID=_FTReportID@4")
#pragma comment (linker, "/export:FTReportName=_FTReportName@4")
#pragma comment (linker, "/export:FTGetDllVersion=_FTGetDllVersion@0")
#pragma comment (linker, "/export:FTProvider=_FTProvider@0")
#pragma comment (linker, "/export:FTGetData=_FTGetData@4")
-#endif \ No newline at end of file
+#endif