Merge pull request #42 from usgs-coupled/37-older-c++-compilers-dont-support-nullptr

37 older c++ compilers dont support nullptr
This commit is contained in:
Charlton, Scott R 2024-03-05 08:37:06 -07:00 committed by GitHub
commit 1a8e4166dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,6 +16,12 @@
# define nullptr NULL # define nullptr NULL
#endif #endif
#if __cplusplus < 201103L // Check if C++ standard is pre-C++11
# ifndef nullptr
# define nullptr NULL
# endif
#endif
#if defined(PHREEQCI_GUI) #if defined(PHREEQCI_GUI)
#ifdef _DEBUG #ifdef _DEBUG
#define new DEBUG_NEW #define new DEBUG_NEW