Skip to content

Commit

Permalink
updated pugixml for DLL build
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob committed Sep 7, 2021
1 parent 9e382f9 commit b976536
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/pugiconfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit b976536

Please sign in to comment.