diff options
Diffstat (limited to 'libstdc++-v3/include/c_std/std_cwctype.h')
-rw-r--r-- | libstdc++-v3/include/c_std/std_cwctype.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libstdc++-v3/include/c_std/std_cwctype.h b/libstdc++-v3/include/c_std/std_cwctype.h index 6d090b97ab2..e469194aa19 100644 --- a/libstdc++-v3/include/c_std/std_cwctype.h +++ b/libstdc++-v3/include/c_std/std_cwctype.h @@ -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 @@ -44,7 +45,12 @@ #define _CPP_CWCTYPE 1 #pragma GCC system_header + +#include <bits/c++config.h> + +#if _GLIBCPP_HAVE_WCTYPE_H #include <wctype.h> +#endif // Get rid of those macros defined in <wctype.h> in lieu of real functions. #undef iswalnum @@ -67,6 +73,7 @@ #undef wctrans #undef wctype +#if _GLIBCPP_USE_WCHAR_T namespace std { using ::wint_t; // cwchar @@ -94,5 +101,6 @@ namespace std using ::wctrans; using ::wctype; } +#endif //_GLIBCPP_USE_WCHAR_T #endif |