From 9303fb31f65e6e91503ffd74a325f2126a34533f Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Fri, 2 Oct 2020 11:30:37 +0200 Subject: [PATCH] Enable export only for windows --- contrib/pugixml/src/pugiconfig.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/pugixml/src/pugiconfig.hpp b/contrib/pugixml/src/pugiconfig.hpp index 724705d0f..920dfbc54 100644 --- a/contrib/pugixml/src/pugiconfig.hpp +++ b/contrib/pugixml/src/pugiconfig.hpp @@ -30,8 +30,10 @@ // #define PUGIXML_NO_EXCEPTIONS // Set this to control attributes for public classes/functions, i.e.: +#ifdef _WIN32 #define PUGIXML_API __declspec(dllexport) // to export all public symbols from DLL #define PUGIXML_CLASS __declspec(dllimport) // to import all classes from DLL +#endif // #define PUGIXML_FUNCTION __fastcall // to set calling conventions to all public functions to fastcall // In absence of PUGIXML_CLASS/PUGIXML_FUNCTION definitions PUGIXML_API is used instead