acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for wctype.h.
2002-03-11 Benjamin Kosnik <bkoz@redhat.com> * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for wctype.h. * aclocal.m4: Regenerate. * config.h.in: Regenerate. * configure: Regenerate. * include/c_std/std_cwctype.h: Guard. From-SVN: r50628
This commit is contained in:
parent
4a085d2edd
commit
31f93f905f
6 changed files with 994 additions and 934 deletions
|
@ -1,3 +1,18 @@
|
|||
2002-03-11 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for wctype.h.
|
||||
* aclocal.m4: Regenerate.
|
||||
* config.h.in: Regenerate.
|
||||
* configure: Regenerate.
|
||||
* include/c_std/std_cwctype.h: Guard.
|
||||
|
||||
2002-03-11 Chris Demetriou <cgd@broadcom.com>
|
||||
|
||||
* acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Enhance check for
|
||||
whether GLIBCPP_CHECK_LINKER_FEATURES has been used.
|
||||
* aclocal.m4: Regenerate.
|
||||
* configure: Regenerate.
|
||||
|
||||
2002-03-11 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* include/bits/stl_bvector.h: Fix warning.
|
||||
|
|
|
@ -869,7 +869,7 @@ AC_DEFUN(GLIBCPP_CHECK_WCHAR_T_SUPPORT, [
|
|||
|
||||
dnl Sanity check for existence of ISO C99 headers for extended encoding.
|
||||
AC_CHECK_HEADERS(wchar.h, ac_has_wchar_h=yes, ac_has_wchar_h=no)
|
||||
AC_CHECK_HEADER(wctype.h, ac_has_wctype_h=yes, ac_has_wctype_h=no)
|
||||
AC_CHECK_HEADERS(wctype.h, ac_has_wctype_h=yes, ac_has_wctype_h=no)
|
||||
|
||||
dnl Only continue checking if the ISO C99 headers exist and support is on.
|
||||
if test x"$ac_has_wchar_h" = xyes &&
|
||||
|
|
2
libstdc++-v3/aclocal.m4
vendored
2
libstdc++-v3/aclocal.m4
vendored
|
@ -881,7 +881,7 @@ AC_DEFUN(GLIBCPP_CHECK_WCHAR_T_SUPPORT, [
|
|||
|
||||
dnl Sanity check for existence of ISO C99 headers for extended encoding.
|
||||
AC_CHECK_HEADERS(wchar.h, ac_has_wchar_h=yes, ac_has_wchar_h=no)
|
||||
AC_CHECK_HEADER(wctype.h, ac_has_wctype_h=yes, ac_has_wctype_h=no)
|
||||
AC_CHECK_HEADERS(wctype.h, ac_has_wctype_h=yes, ac_has_wctype_h=no)
|
||||
|
||||
dnl Only continue checking if the ISO C99 headers exist and support is on.
|
||||
if test x"$ac_has_wchar_h" = xyes &&
|
||||
|
|
|
@ -723,6 +723,9 @@
|
|||
/* Define if you have the <wchar.h> header file. */
|
||||
#undef HAVE_WCHAR_H
|
||||
|
||||
/* Define if you have the <wctype.h> header file. */
|
||||
#undef HAVE_WCTYPE_H
|
||||
|
||||
/* Define if you have the m library (-lm). */
|
||||
#undef HAVE_LIBM
|
||||
|
||||
|
|
1897
libstdc++-v3/configure
vendored
1897
libstdc++-v3/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -1,6 +1,7 @@
|
|||
// -*- C++ -*- forwarding header.
|
||||
|
||||
// Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
|
||||
// Free Software Foundation, Inc.
|
||||
//
|
||||
// This file is part of the GNU ISO C++ Library. This library is free
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
|
@ -43,8 +44,12 @@
|
|||
#ifndef _CPP_CWCTYPE
|
||||
#define _CPP_CWCTYPE 1
|
||||
|
||||
#include <bits/c++config.h>
|
||||
|
||||
#if _GLIBCPP_HAVE_WCTYPE_H
|
||||
#pragma GCC system_header
|
||||
#include <wctype.h>
|
||||
#endif
|
||||
|
||||
// Get rid of those macros defined in <wctype.h> in lieu of real functions.
|
||||
#undef iswalnum
|
||||
|
@ -67,6 +72,7 @@
|
|||
#undef wctrans
|
||||
#undef wctype
|
||||
|
||||
#if _GLIBCPP_USE_WCHAR_T
|
||||
namespace std
|
||||
{
|
||||
using ::wint_t; // cwchar
|
||||
|
@ -94,5 +100,6 @@ namespace std
|
|||
using ::wctrans;
|
||||
using ::wctype;
|
||||
}
|
||||
#endif //_GLIBCPP_USE_WCHAR_T
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue