Consolidate duplicate if statements.

This commit is contained in:
Frederich Munch 2016-12-06 21:29:16 -05:00 committed by sftnight
parent f28c04c1a2
commit 3ea7fef180

View File

@ -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;