std_cwchar.h revision 132720
197403Sobrien// -*- C++ -*- forwarding header. 297403Sobrien 3132720Skan// Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc. 497403Sobrien// 597403Sobrien// This file is part of the GNU ISO C++ Library. This library is free 697403Sobrien// software; you can redistribute it and/or modify it under the 797403Sobrien// terms of the GNU General Public License as published by the 897403Sobrien// Free Software Foundation; either version 2, or (at your option) 997403Sobrien// any later version. 1097403Sobrien 1197403Sobrien// This library is distributed in the hope that it will be useful, 1297403Sobrien// but WITHOUT ANY WARRANTY; without even the implied warranty of 1397403Sobrien// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1497403Sobrien// GNU General Public License for more details. 1597403Sobrien 1697403Sobrien// You should have received a copy of the GNU General Public License along 1797403Sobrien// with this library; see the file COPYING. If not, write to the Free 18169691Skan// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, 1997403Sobrien// USA. 2097403Sobrien 2197403Sobrien// As a special exception, you may use this file as part of a free software 2297403Sobrien// library without restriction. Specifically, if other files instantiate 2397403Sobrien// templates or use macros or inline functions from this file, or you compile 2497403Sobrien// this file and link it with other files to produce an executable, this 2597403Sobrien// file does not by itself cause the resulting executable to be covered by 2697403Sobrien// the GNU General Public License. This exception does not however 2797403Sobrien// invalidate any other reasons why the executable file might be covered by 2897403Sobrien// the GNU General Public License. 2997403Sobrien 3097403Sobrien// 3197403Sobrien// ISO C++ 14882: 21.4 3297403Sobrien// 3397403Sobrien 34132720Skan#ifndef _GLIBCXX_CWCHAR 35132720Skan#define _GLIBCXX_CWCHAR 1 3697403Sobrien 3797403Sobrien#pragma GCC system_header 3897403Sobrien 39102782Skan#include <bits/c++config.h> 40102782Skan#include <cstddef> 41102782Skan#include <ctime> 42102782Skan 43132720Skan#if _GLIBCXX_HAVE_WCHAR_H 4497403Sobrien#include_next <wchar.h> 45102782Skan#endif 4697403Sobrien 47102782Skan// Need to do a bit of trickery here with mbstate_t as char_traits 48102782Skan// assumes it is in wchar.h, regardless of wchar_t specializations. 49132720Skan#ifndef _GLIBCXX_HAVE_MBSTATE_T 50102782Skannamespace std 51102782Skan{ 52132720Skan extern "C" 53102782Skan { 54132720Skan typedef struct 55102782Skan { 56102782Skan int __fill[6]; 57102782Skan } mbstate_t; 58102782Skan } 59102782Skan} 60102782Skan#endif 61102782Skan 62132720Skan#endif 63