Consolidate duplicate if statements.
This commit is contained in:
parent
f28c04c1a2
commit
3ea7fef180
@ -398,12 +398,14 @@ namespace {
|
||||
// the test for C++14 or more (201402L) as previously specified.
|
||||
// I would claim that the check should be relaxed to:
|
||||
|
||||
if (Opts.CPlusPlus) {
|
||||
#if __cplusplus > 201103L
|
||||
if (Opts.CPlusPlus) Opts.CPlusPlus14 = 1;
|
||||
Opts.CPlusPlus14 = 1;
|
||||
#endif
|
||||
#if __cplusplus >= 201103L
|
||||
if (Opts.CPlusPlus) Opts.CPlusPlus11 = 1;
|
||||
Opts.CPlusPlus11 = 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef _REENTRANT
|
||||
Opts.POSIXThreads = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user