0
0
mirror of https://github.com/zeux/pugixml.git synced 2025-01-14 01:47:55 +08:00

Merge pull request #506 from brandl-muc/nullptr_for_msvc

Enable usage of nullptr for MSVC 16 and newer (MSVS 2010)
This commit is contained in:
Arseny Kapoulkine 2022-08-04 08:46:13 -07:00 committed by GitHub
commit 27bc68ab45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,6 +115,8 @@
#ifndef PUGIXML_NULL #ifndef PUGIXML_NULL
# if __cplusplus >= 201103 # if __cplusplus >= 201103
# define PUGIXML_NULL nullptr # define PUGIXML_NULL nullptr
# elif defined(_MSC_VER) && _MSC_VER >= 1600
# define PUGIXML_NULL nullptr
# else # else
# define PUGIXML_NULL 0 # define PUGIXML_NULL 0
# endif # endif