This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH [google/gcc-4_6-branch]: Include <cstddef> in config/locale/generic/c_locale.h
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 14 Dec 2011 09:06:32 -0800
- Subject: PATCH [google/gcc-4_6-branch]: Include <cstddef> in config/locale/generic/c_locale.h
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
Revision 172595:
http://gcc.gnu.org/viewcvs?view=revision&revision=172595
added NULL to config/locale/generic/c_locale.h on google/gcc-4_6-branch.
But <cstddef> isn't included, which lead to build failure since NULL isn't
defined. This patch includes <cstddef>. OK for google/gcc-4_6-branch?
H.J.
---
libstdc++-v3/ChangeLog.hjl | 3 +++
libstdc++-v3/config/locale/generic/c_locale.h | 1 +
2 files changed, 4 insertions(+), 0 deletions(-)
create mode 100644 libstdc++-v3/ChangeLog.hjl
diff --git a/libstdc++-v3/ChangeLog.hjl b/libstdc++-v3/ChangeLog.hjl
new file mode 100644
index 0000000..b9ca5bd
--- /dev/null
+++ b/libstdc++-v3/ChangeLog.hjl
@@ -0,0 +1,3 @@
+2011-12-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/locale/generic/c_locale.h: Include <cstddef>.
diff --git a/libstdc++-v3/config/locale/generic/c_locale.h b/libstdc++-v3/config/locale/generic/c_locale.h
index 6e6f673..58c954a 100644
--- a/libstdc++-v3/config/locale/generic/c_locale.h
+++ b/libstdc++-v3/config/locale/generic/c_locale.h
@@ -40,6 +40,7 @@
#pragma GCC system_header
#include <clocale>
+#include <cstddef>
#define _GLIBCXX_NUM_CATEGORIES 0
--
1.7.6.4