aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2002-04-30 19:50:29 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2002-04-30 19:50:29 +0000
commit888d5eaa62fd5a9e9c62cff6e94a2e9e79434c1e (patch)
tree3caa8cfbcf350df0bfe525b0ae541d918b4761d4
parented9d6ff9f137a1d2581c30a31ebb6d96ded648d3 (diff)
downloadgcc-888d5eaa62fd5a9e9c62cff6e94a2e9e79434c1e.zip
gcc-888d5eaa62fd5a9e9c62cff6e94a2e9e79434c1e.tar.gz
gcc-888d5eaa62fd5a9e9c62cff6e94a2e9e79434c1e.tar.bz2
re PR libstdc++/6501 (ctype_noninline.h:45: `__SB_masks' undeclared)
PR libstdc++/6501 * include/c_std/std_cctype.h: Include bits/c++config.h. * config/os/hpux/bits/os_defines.h (_SB_CTYPE_MACROS): Define. From-SVN: r52970
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/config/os/hpux/bits/os_defines.h3
-rw-r--r--libstdc++-v3/include/c_std/std_cctype.h1
3 files changed, 8 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index fd02dba..8015fa6 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,7 @@
+ PR libstdc++/6501
+ * include/c_std/std_cctype.h: Include bits/c++config.h.
+ * config/os/hpux/bits/os_defines.h (_SB_CTYPE_MACROS): Define.
+
2002-04-30 Benjamin Kosnik <bkoz@redhat.com>
* include/ext/stdio_filebuf.h: New file.
diff --git a/libstdc++-v3/config/os/hpux/bits/os_defines.h b/libstdc++-v3/config/os/hpux/bits/os_defines.h
index 4bd2e05..c8a6c9d 100644
--- a/libstdc++-v3/config/os/hpux/bits/os_defines.h
+++ b/libstdc++-v3/config/os/hpux/bits/os_defines.h
@@ -39,6 +39,9 @@
#define __glibcpp_wchar_t_is_signed false
+// Use macro form of ctype functions to ensure __SB_masks is defined.
+#define _SB_CTYPE_MACROS 1
+
/* HP-UX, for reasons unknown choose to use a different name for
the string to [unsigned] long long conversion routines.
diff --git a/libstdc++-v3/include/c_std/std_cctype.h b/libstdc++-v3/include/c_std/std_cctype.h
index 68bd182..4700809 100644
--- a/libstdc++-v3/include/c_std/std_cctype.h
+++ b/libstdc++-v3/include/c_std/std_cctype.h
@@ -45,6 +45,7 @@
#pragma GCC system_header
+#include <bits/c++config.h>
#include <ctype.h>
// Get rid of those macros defined in <ctype.h> in lieu of real functions.