aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2015-10-03 13:09:31 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2015-10-03 13:09:31 +0100
commitf4cfe221bf574585968988782748a96350f1e822 (patch)
treece18c3427ee39b9ed8c063d9f864bdc6c7507262
parent30748ef9c77f48cff55ef5957a142ebd88dfedee (diff)
downloadgcc-f4cfe221bf574585968988782748a96350f1e822.zip
gcc-f4cfe221bf574585968988782748a96350f1e822.tar.gz
gcc-f4cfe221bf574585968988782748a96350f1e822.tar.bz2
Fix comments saying why headers are included
* src/c++98/locale.cc: Fix comment. * src/c++98/locale_init.cc: Likewise. From-SVN: r228446
-rw-r--r--libstdc++-v3/ChangeLog3
-rw-r--r--libstdc++-v3/src/c++98/locale.cc1
-rw-r--r--libstdc++-v3/src/c++98/locale_init.cc2
3 files changed, 4 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index e973c62..c01d8d5 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,8 @@
2015-10-03 Jonathan Wakely <jwakely@redhat.com>
+ * src/c++98/locale.cc: Fix comment.
+ * src/c++98/locale_init.cc: Likewise.
+
* testsuite/21_strings/basic_string/literals/types.cc: Guard use of
wchar_t with _GLIBCXX_USE_WCHAR_T.
* testsuite/21_strings/basic_string/literals/values.cc: Likewise.
diff --git a/libstdc++-v3/src/c++98/locale.cc b/libstdc++-v3/src/c++98/locale.cc
index 1c29a56..3395c93 100644
--- a/libstdc++-v3/src/c++98/locale.cc
+++ b/libstdc++-v3/src/c++98/locale.cc
@@ -23,7 +23,6 @@
#define _GLIBCXX_USE_CXX11_ABI 1
#include <clocale>
#include <cstring>
-#include <cstdlib> // For getenv
#include <cctype>
#include <cwctype> // For towupper, etc.
#include <locale>
diff --git a/libstdc++-v3/src/c++98/locale_init.cc b/libstdc++-v3/src/c++98/locale_init.cc
index 0a95b9f..be7fd90 100644
--- a/libstdc++-v3/src/c++98/locale_init.cc
+++ b/libstdc++-v3/src/c++98/locale_init.cc
@@ -23,7 +23,7 @@
#define _GLIBCXX_USE_CXX11_ABI 1
#include <clocale>
#include <cstring>
-#include <cstdlib> // For getenv, free.
+#include <cstdlib> // For free.
#include <cctype>
#include <cwctype> // For towupper, etc.
#include <locale>