summaryrefslogtreecommitdiff
path: root/src/pugiconfig.hpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-08-31 13:40:20 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-08-31 13:40:20 +0000
commitbc98c9e585ea45c976eab0bc67e9e47617105f2e (patch)
tree0c38911ddfe4fa809f5bbe54875e0897af9309d8 /src/pugiconfig.hpp
parent530b0dec2169e23b65bf160e2b4074f4b78d733b (diff)
Added optional PUGIXML_API, PUGIXML_CLASS and PUGIXML_FUNCTION defines to control class/function attributes (DLL export/import, calling conventions, etc.)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@125 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugiconfig.hpp')
-rw-r--r--src/pugiconfig.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pugiconfig.hpp b/src/pugiconfig.hpp
index e1ac464..57514ae 100644
--- a/src/pugiconfig.hpp
+++ b/src/pugiconfig.hpp
@@ -24,4 +24,10 @@
// Note: you can't use XPath with PUGIXML_NO_EXCEPTIONS
// #define PUGIXML_NO_EXCEPTIONS
+// 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
+// #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
+
#endif