diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-20 05:29:23 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-20 05:29:23 +0200 |
commit | 1f79db85108ff4e5743665423527810b8099d128 (patch) | |
tree | aa0a1d34692fc59a23f1aaeb9f9d4e92ef6c28f5 /freetrackclient | |
parent | 0f1b798fc437f78825e5dc73d011f5605a440036 (diff) |
freetrackclient: fix for 64-bit
Diffstat (limited to 'freetrackclient')
-rw-r--r-- | freetrackclient/freetrackclient.c | 11 |
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 |