From 266a706084c34b849be30a4806fb2b292eb99bbd Mon Sep 17 00:00:00 2001 From: angusj Date: Wed, 25 Oct 2023 17:08:20 +1000 Subject: [PATCH] clipper.export.h compile error --- CPP/Clipper2Lib/include/clipper2/clipper.export.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CPP/Clipper2Lib/include/clipper2/clipper.export.h b/CPP/Clipper2Lib/include/clipper2/clipper.export.h index 49f4bcc9..6ebac1d3 100644 --- a/CPP/Clipper2Lib/include/clipper2/clipper.export.h +++ b/CPP/Clipper2Lib/include/clipper2/clipper.export.h @@ -98,7 +98,12 @@ inline Rect CRectToRect(const CRect& rect) return result; } -#define EXTERN_DLL_EXPORT extern "C" __declspec(dllexport) +#ifdef _WIN32 + #define EXTERN_DLL_EXPORT extern "C" __declspec(dllexport) +#else + #define EXTERN_DLL_EXPORT extern "C" +#endif + ////////////////////////////////////////////////////// // EXPORTED FUNCTION DECLARATIONS