This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

V3 PATCH: Include libio.h where required



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]