Commit 31f93f90 by Benjamin Kosnik

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
parent 4a085d2e
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.
2002-03-11 Richard Henderson <rth@redhat.com>
......
......@@ -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 &&
......
......@@ -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
......
This source diff could not be displayed because it is too large. You can view the blob instead.
// -*- 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment