This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
V3 PATCH: Include libio.h where required
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at sources dot redhat dot com
- Subject: V3 PATCH: Include libio.h where required
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Thu, 16 Nov 2000 01:22:22 -0800
- Organization: CodeSourcery, LLC
In c_io_stdio.h, there is a reference to _IO_wide_data, but <libio.h>
was not included. This probably worked on GNU/Linux becuase libio.h
gets pulled in via stdio.h on GNU/Linux, but it was no good on
Solaris.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
2000-11-16 Mark Mitchell <mark@codesourcery.com>
* config/c_io_stdio.h: Include libio.h.
Index: config/c_io_stdio.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/config/c_io_stdio.h,v
retrieving revision 1.2
diff -c -p -r1.2 c_io_stdio.h
*** c_io_stdio.h 2000/11/14 13:49:27 1.2
--- c_io_stdio.h 2000/11/16 09:15:23
***************
*** 35,40 ****
--- 35,46 ----
#include <stdio.h>
#include <bits/c++threads.h>
+ #if _GLIBCPP_USE_WCHAR_T
+ // Even though we use the C stdio facilities for ordinary streams,
+ // we still use libio for wide-character support.
+ #include <libio.h>
+ #endif
+
namespace std {
// from fpos.h