From b976536ad079f8a1f3d039df45a51d3c53174e85 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Mon, 16 May 2016 23:16:24 +0200 Subject: [PATCH] updated pugixml for DLL build --- src/pugiconfig.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/pugiconfig.hpp b/src/pugiconfig.hpp index 405a66b65..5d3b3b02e 100644 --- a/src/pugiconfig.hpp +++ b/src/pugiconfig.hpp @@ -14,6 +14,10 @@ #ifndef HEADER_PUGICONFIG_HPP #define HEADER_PUGICONFIG_HPP +#ifdef _MSC_VER +# pragma warning (disable: 4275) +#endif + // Uncomment this to enable wchar_t mode // #define PUGIXML_WCHAR_MODE @@ -29,6 +33,16 @@ // Uncomment this to disable exceptions // #define PUGIXML_NO_EXCEPTIONS +#ifdef _WIN32 +# ifdef PUGIXML_BUILD_DLL +# define PUGIXML_API __declspec(dllexport) +# else +# define PUGIXML_API __declspec(dllimport) +# endif +#else +# define PUGIXML_API __attribute__ ((visibility("default"))) +#endif + // Set this to control attributes for public classes/functions, i.e.: // #define PUGIXML_API __declspec(dllexport) // to export all public symbols from DLL // #define PUGIXML_CLASS __declspec(dllimport) // to import all classes from DLL