From 1f79db85108ff4e5743665423527810b8099d128 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 20 Oct 2017 05:29:23 +0200 Subject: freetrackclient: fix for 64-bit --- freetrackclient/freetrackclient.c | 11 ++++++++--- 1 file 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 @@ -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 -- cgit v1.2.3