diff --git a/src/common/Utils.cxx b/src/common/Utils.cxx index 0e8d461ae..6738fa9d4 100644 --- a/src/common/Utils.cxx +++ b/src/common/Utils.cxx @@ -16,6 +16,12 @@ # define nullptr NULL #endif +#if __cplusplus < 201103L // Check if C++ standard is pre-C++11 +# ifndef nullptr +# define nullptr NULL +# endif +#endif + #if defined(PHREEQCI_GUI) #ifdef _DEBUG #define new DEBUG_NEW