aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2018-07-26 16:36:50 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2018-07-26 16:36:50 +0000
commit4b8b1f5997e7f16713be5c05e7fd40c122fa9381 (patch)
tree45f5c6b67dfe4aa98ee8fd0ae2b2b2a13b496255
parent5d36384c6997e59264cf80bf58fc17c5ef3a6bc8 (diff)
downloadgcc-4b8b1f5997e7f16713be5c05e7fd40c122fa9381.zip
gcc-4b8b1f5997e7f16713be5c05e7fd40c122fa9381.tar.gz
gcc-4b8b1f5997e7f16713be5c05e7fd40c122fa9381.tar.bz2
* src/c++98/locale_init.cc: Fix #ifdef condition.
From-SVN: r263016
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/src/c++98/locale_init.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 666d497..204b89b 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,7 @@
+2018-07-26 Marek Polacek <polacek@redhat.com>
+
+ * src/c++98/locale_init.cc: Fix #ifdef condition.
+
2018-07-26 Jonathan Wakely <jwakely@redhat.com>
* testsuite/18_support/aligned_alloc/aligned_alloc.cc: Add
diff --git a/libstdc++-v3/src/c++98/locale_init.cc b/libstdc++-v3/src/c++98/locale_init.cc
index 5651c04..c9078c0 100644
--- a/libstdc++-v3/src/c++98/locale_init.cc
+++ b/libstdc++-v3/src/c++98/locale_init.cc
@@ -534,7 +534,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_M_init_facet(new (&messages_w) std::messages<wchar_t>(1));
#endif
-#ifdef _GLIBCXX_NUM_UNICODE_FACETS != 0
+#if _GLIBCXX_NUM_UNICODE_FACETS != 0
_M_init_facet(new (&codecvt_c16) codecvt<char16_t, char, mbstate_t>(1));
_M_init_facet(new (&codecvt_c32) codecvt<char32_t, char, mbstate_t>(1));
#endif