diff options
author | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-03-14 03:08:01 +0000 |
---|---|---|
committer | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-03-14 03:08:01 +0000 |
commit | 2f6baa1005bdd5f94d22ce7270237d5f45120f71 (patch) | |
tree | 7d2581d6a57dc3bb599b57f1b4118681f3d3f4c4 /src/pugixml.hpp | |
parent | 7df35dabd5c64b128eed25138c85e2cef2ad675e (diff) |
Implemented optional header-only mode (still need to do a couple of fixes for rare compilers, but it seems to work on the majority of configurations). Tests work in header-only mode, but testing is not enabled yet (still a bit more work to be done, and compiling header-only tests is up to 4 times slower, so we can't test more than one-two configurations per toolset)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@855 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.hpp')
-rw-r--r-- | src/pugixml.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp index d0a8623..b01da4f 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -11,15 +11,17 @@ * Copyright (C) 2003, by Kristen Wegner (kristen@tima.net) */ -#ifndef HEADER_PUGIXML_HPP -#define HEADER_PUGIXML_HPP - +#ifndef PUGIXML_VERSION // Define version macro; evaluates to major * 100 + minor so that it's safe to use in less-than comparisons -#define PUGIXML_VERSION 100 +# define PUGIXML_VERSION 100 +#endif // Include user configuration file (this can define various configuration macros) #include "pugiconfig.hpp" +#ifndef HEADER_PUGIXML_HPP +#define HEADER_PUGIXML_HPP + // Include stddef.h for size_t and ptrdiff_t #include <stddef.h> |