From f7de324855c949bf42838203d1b654618e2fc09a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matth=C3=A4us=20Brandl?= Date: Thu, 4 Aug 2022 15:57:11 +0200 Subject: [PATCH] Enable usage of nullptr for MSVC 16 and newer (MSVS 2010) --- src/pugixml.hpp | 2 ++ 1 file changed, 2 insertions(+) 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