From: John David Anglin Date: Tue, 30 Apr 2002 19:29:24 +0000 (+0000) Subject: re PR libstdc++/6501 (ctype_noninline.h:45: `__SB_masks' undeclared) X-Git-Tag: releases/gcc-3.1.0~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c02e45f9aef96e99e914d8756a02229c2dfd41ee;p=thirdparty%2Fgcc.git 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: r52967 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b9444e09129d..413c3f821d00 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2002-04-30 John David Anglin + + 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 * 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 4bd2e05c6bac..c8a6c9df8a78 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 68bd182d5192..4700809f3aac 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 #include // Get rid of those macros defined in in lieu of real functions.