Enable export only for windows

pull/2966/head
Kim Kulling 2020-10-02 11:30:37 +02:00 committed by GitHub
parent 9d296f3943
commit 9303fb31f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -30,8 +30,10 @@
// #define PUGIXML_NO_EXCEPTIONS // #define PUGIXML_NO_EXCEPTIONS
// Set this to control attributes for public classes/functions, i.e.: // 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_API __declspec(dllexport) // to export all public symbols from DLL
#define PUGIXML_CLASS __declspec(dllimport) // to import all classes 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 // #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 // In absence of PUGIXML_CLASS/PUGIXML_FUNCTION definitions PUGIXML_API is used instead