re PR libstdc++/6501 (ctype_noninline.h:45: `__SB_masks' undeclared)
authorJohn David Anglin <danglin@gcc.gnu.org>
Tue, 30 Apr 2002 19:50:29 +0000 (19:50 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Tue, 30 Apr 2002 19:50:29 +0000 (19:50 +0000)
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

libstdc++-v3/ChangeLog
libstdc++-v3/config/os/hpux/bits/os_defines.h
libstdc++-v3/include/c_std/std_cctype.h

index fd02dba763d38021d822b9af28df3a1d6af2a432..8015fa60cd5842a4dc9bc05ec7015e42fc80a488 100644 (file)
@@ -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.
index 4bd2e05c6bac1e67271a92dc1005d22ce56566b3..c8a6c9df8a78dcc20200393479cf521126368bfc 100644 (file)
@@ -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.
 
index 68bd182d5192f71a3b116fe3d9051f3b42953d6b..4700809f3aac99e9f04eee53cc4baf22a85ef39f 100644 (file)
@@ -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.