summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2011-12-09 06:48:46 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2011-12-09 06:48:46 +0000
commitaef822c27e0cd3ad7bc3addfd4e3c8180341d7f8 (patch)
tree9f9487dfc408ac7ca73540d20b5be133de9966ff
parent678d81bea6fe384bfed52d5d9290512abba7a84e (diff)
Added PUGIXML_VERSION define to enable preprocessor-based version checks in case compatibility workarounds are needed
git-svn-id: http://pugixml.googlecode.com/svn/trunk@827 99668b35-9821-0410-8761-19e4c4f06640
-rw-r--r--src/pugixml.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index 11bf279..1946bfb 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -14,6 +14,10 @@
#ifndef HEADER_PUGIXML_HPP
#define HEADER_PUGIXML_HPP
+// Define version macro; evaluates to major * 100 + minor so that it's safe to use in less-than comparisons
+#define PUGIXML_VERSION 100
+
+// Include user configuration file (this can define various configuration macros)
#include "pugiconfig.hpp"
// Include stddef.h for size_t and ptrdiff_t