From: John David Anglin Date: Tue, 30 Apr 2002 19:50:29 +0000 (+0000) Subject: re PR libstdc++/6501 (ctype_noninline.h:45: `__SB_masks' undeclared) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=888d5eaa62fd5a9e9c62cff6e94a2e9e79434c1e;p=gcc.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: r52970 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index fd02dba763d..8015fa60cd5 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 * 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 4bd2e05c6ba..c8a6c9df8a7 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 68bd182d519..4700809f3aa 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.