V3 PATCH: Include libio.h where required
Mark Mitchell
mark@codesourcery.com
Thu Nov 16 01:22:00 GMT 2000
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
More information about the Libstdc++
mailing list