Skip to content
Permalink
Browse files

Merge pull request #2588 from mkrautz/compiler-pri-c++98

compiler.pri: use -std=c++98 instead of -std=c++03.
  • Loading branch information...
Kissaki committed Oct 26, 2016
2 parents 30c779c + 509d7fd commit 76b95d1a1a3acb86d53fb286c1abaad96143e351
Showing with 10 additions and 2 deletions.
  1. +10 −2 compiler.pri
@@ -248,10 +248,18 @@ unix {
}
} else {
# If C++11 support hasn't been explicitly enabled,
# force C++03 mode. If we don't do this, newer
# force C++98/C++03 mode. If we don't do this, newer
# compilers (such as G++ 6) will default to C++11
# without us being aware.
QMAKE_CXXFLAGS *= -std=c++03
#
# The flag passed below might seem archaic. And it is.
# But GCC treats -std=c++98, -std=c++03 and -ansi to
# mean the same thing. (See the GCC man page in Debian,
# or https://gcc.gnu.org/onlinedocs/gcc/Standards.html)
# We use the -std=c++98 variant to be compatible with
# older compilers such as CentOS 5's default compiler,
# GCC 4.1.
QMAKE_CXXFLAGS *= -std=c++98
}
}

0 comments on commit 76b95d1

Please sign in to comment.
You can’t perform that action at this time.