From 8c75289033623c366a6949adfabe4cdcf550d4ac Mon Sep 17 00:00:00 2001 From: triton Date: Fri, 9 May 2014 14:50:25 +0100 Subject: [PATCH] Check for defines before defining to get rid of some warnings. --- tests/Tests.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/Tests.h b/tests/Tests.h index 8b89ac22..1b493c67 100644 --- a/tests/Tests.h +++ b/tests/Tests.h @@ -2,12 +2,24 @@ #if defined(_MSC_VER) #define DLL_API __declspec(dllexport) + +#ifndef STDCALL #define STDCALL __stdcall +#endif + +#ifndef CDECL #define CDECL __cdecl +#endif #else #define DLL_API __attribute__ ((visibility ("default"))) + +#ifndef STDCALL #define STDCALL __attribute__((stdcall)) +#endif + +#ifndef CDECL #define CDECL __attribute__((cdecl)) #endif +#endif #define CS_OUT \ No newline at end of file