c_io_libio.cc (basic_file<char>::__basic_file): Don't pass a NULL _IO_wide_data to...
authorMark Mitchell <mark@codesourcery.com>
Sun, 29 Oct 2000 21:52:54 +0000 (21:52 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 29 Oct 2000 21:52:54 +0000 (21:52 +0000)
commit3c97056f548aa69dd9721b43e0738f63f656398e
treeb3dfb2ce5894e4bea6195cc2d125b15eda8bc7d0
parentf80c00cc55fcf0c5b51187a818575af01ab6b0c7
c_io_libio.cc (basic_file<char>::__basic_file): Don't pass a NULL _IO_wide_data to _IO_no_init when...

* config/c_io_libio.cc (basic_file<char>::__basic_file):
Don't pass a NULL _IO_wide_data to _IO_no_init when
_GLIBCPP_USE_WCHAR_T is not defined.
* config/c_io_libio.h (_IO_codecvt): Don't declare when
_GLIBCPP_USE_WCHAR_T is not defined.
* config/c_io_libio_codecvt.c: Don't compile it
when _GLIBCPP_USE_WCHAR_T is not defined.
* include/bits/codecvt.h (codecvt<_InternT, _ExternT, __enc_traits):
Don't define this specialization when _GLIBCPP_USE_WCHAR_T
is not defined.
* include/bits/locale_facets.h (<bits/std_cwctype.h>): Don't
include it when _GLIBCPP_USE_WCHAR_T is not defined.
* src/codecvt.cc (__enc_traits::_S_max_size): Don't define
when _GLIBCPP_USE_WCHAR_T is not defined.
* src/localename.cc (locale::_Impl::_M_construct_collate):
Don't call wide-character functions when _GLIBCPP_USE_WCHAR_T is
not defined.
(locale::_Impl::_M_construct_ctype): Likewise.
(locale::_Impl::_M_construct_monetary): Likewise.
(locale::_Impl::_M_construct_numeric): Likewise.
(locale::_Impl::_M_construct_time): Likewise.
(locale::_Impl::_M_construct_messages): Likewise.

* iofopen.c (_IO_new_fopen): Don't define `_IO_wide_data wd'
if _GLIBCPP_USE_WCHAR_T is not defined.
* iofwide.c: Don't define codecvt functions when
_GLIBCPP_USE_WCHAR_T is not defined.
(_IO_fwide): Don't try to put the stream in wide mode when
_GLIBCPP_USE_WCHAR_T is not defined.
* libio.h (_IO_wide_data): Define it as an incomplete struct
when _GLIBCPP_USE_WCHAR_T is not defined.
* wfiledoalloc.c: Don't define anything when
_GLIBCPP_USE_WCHAR_T is not defined.
* wfileops.c: Likewise.
* wgenops.c: Likewise.

From-SVN: r37131
15 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/config/c_io_libio.cc
libstdc++-v3/config/c_io_libio.h
libstdc++-v3/config/c_io_libio_codecvt.c
libstdc++-v3/include/bits/codecvt.h
libstdc++-v3/include/bits/locale_facets.h
libstdc++-v3/libio/ChangeLog
libstdc++-v3/libio/iofopen.c
libstdc++-v3/libio/iofwide.c
libstdc++-v3/libio/libio.h
libstdc++-v3/libio/wfiledoalloc.c
libstdc++-v3/libio/wfileops.c
libstdc++-v3/libio/wgenops.c
libstdc++-v3/src/codecvt.cc
libstdc++-v3/src/localename.cc