diff options
author | Matthäus Brandl <brandl.matthaeus@gmail.com> | 2022-08-04 15:57:11 +0200 |
---|---|---|
committer | Matthäus Brandl <brandl.matthaeus@gmail.com> | 2022-08-04 16:59:37 +0200 |
commit | f7de324855c949bf42838203d1b654618e2fc09a (patch) | |
tree | df292ae2ddaf4ffba55e8f2ead76461f2500fc69 | |
parent | 3b5c1fb022dc286b0480ccafa9b79f832deb24ce (diff) | |
download | pugixml-f7de324855c949bf42838203d1b654618e2fc09a.zip pugixml-f7de324855c949bf42838203d1b654618e2fc09a.tar.gz pugixml-f7de324855c949bf42838203d1b654618e2fc09a.tar.bz2 |
Enable usage of nullptr for MSVC 16 and newer (MSVS 2010)
-rw-r--r-- | src/pugixml.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp index 579f143..32a2d7c 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -115,6 +115,8 @@ #ifndef PUGIXML_NULL # if __cplusplus >= 201103 # define PUGIXML_NULL nullptr +# elif defined(_MSC_VER) && _MSC_VER >= 1600 +# define PUGIXML_NULL nullptr # else # define PUGIXML_NULL 0 # endif |