summaryrefslogtreecommitdiff
path: root/src/pugixml.hpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-02-08 21:59:14 +0000
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-02-08 21:59:14 +0000
commit2bd99cff86d3e8853e0cf776ae0cb6e6a18f2bb3 (patch)
treebac1bca21011a105b269f9686129fdea786705d5 /src/pugixml.hpp
parent44d3ae5e9014c3f52c67d8f593605b77752264e6 (diff)
Enable long long support for C++11 and for MSVC 2008+
git-svn-id: http://pugixml.googlecode.com/svn/trunk@967 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.hpp')
-rw-r--r--src/pugixml.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index a988b90..bf8da03 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -63,6 +63,15 @@
# define PUGIXML_FUNCTION PUGIXML_API
#endif
+// If the platform is known to have long long support, enable long long functions
+#ifndef PUGIXML_HAS_LONG_LONG
+# if defined(__cplusplus) && __cplusplus >= 201103
+# define PUGIXML_HAS_LONG_LONG
+# elif defined(_MSC_VER) && _MSC_VER >= 1400
+# define PUGIXML_HAS_LONG_LONG
+# endif
+#endif
+
// Character interface macros
#ifdef PUGIXML_WCHAR_MODE
# define PUGIXML_TEXT(t) L ## t