From aef822c27e0cd3ad7bc3addfd4e3c8180341d7f8 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Fri, 9 Dec 2011 06:48:46 +0000 Subject: 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 --- src/pugixml.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/pugixml.hpp') 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 -- cgit v1.2.3