Skip to content

Commit 9233bdc

Browse files
author
Darth Vader
committed
Squashed 'phreeqc3/' changes from b1f528f2..e8866cd4
e8866cd4 fixed nullptr for pre-c++11 git-subtree-dir: phreeqc3 git-subtree-split: e8866cd44e0018ce8f26185678bb8d6121f27fd1
1 parent 49385ab commit 9233bdc

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed

src/PBasic.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@
2424
#define toklength 20
2525
typedef long chset[9];
2626

27+
#if defined(_MSC_VER) && (_MSC_VER <= 1400) // VS2005
28+
# define nullptr NULL
29+
#endif
30+
31+
#if __cplusplus < 201103L // Check if C++ standard is pre-C++11
32+
# ifndef nullptr
33+
# define nullptr NULL
34+
# endif
35+
#endif
36+
2737
#if defined(PHREEQCI_GUI)
2838
#ifdef _DEBUG
2939
#define new DEBUG_NEW

src/basicsubs.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@
1212
#include "Solution.h"
1313
#include "Parser.h"
1414

15+
#if defined(_MSC_VER) && (_MSC_VER <= 1400) // VS2005
16+
# define nullptr NULL
17+
#endif
18+
19+
#if __cplusplus < 201103L // Check if C++ standard is pre-C++11
20+
# ifndef nullptr
21+
# define nullptr NULL
22+
# endif
23+
#endif
24+
1525
#if defined(PHREEQCI_GUI)
1626
#ifdef _DEBUG
1727
#define new DEBUG_NEW

src/print.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@
1515
#include "Solution.h"
1616
#include "Surface.h"
1717

18+
#if defined(_MSC_VER) && (_MSC_VER <= 1400) // VS2005
19+
# define nullptr NULL
20+
#endif
21+
22+
#if __cplusplus < 201103L // Check if C++ standard is pre-C++11
23+
# ifndef nullptr
24+
# define nullptr NULL
25+
# endif
26+
#endif
27+
1828
#if defined(PHREEQCI_GUI)
1929
#ifdef _DEBUG
2030
#define new DEBUG_NEW

src/transport.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ struct MOLES_ADDED /* total moles added to balance negative conc's */
5252
} *moles_added;
5353
int count_moles_added;
5454

55+
#if defined(_MSC_VER) && (_MSC_VER <= 1400) // VS2005
56+
# define nullptr NULL
57+
#endif
58+
59+
#if __cplusplus < 201103L // Check if C++ standard is pre-C++11
60+
# ifndef nullptr
61+
# define nullptr NULL
62+
# endif
63+
#endif
64+
5565
#if defined(PHREEQCI_GUI)
5666
#ifdef _DEBUG
5767
#define new DEBUG_NEW

0 commit comments

Comments
 (0)