This is the mail archive of the libstdc++@gcc.gnu.org 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]
Other format: [Raw text]

[libstdc++ patch] Add C99 guard to stdio.h c-compatibility header


cheaders=c plus c-compatibilty headers is broken for targets that
do not have C99 stdio support.

The addition of _GLIBCPP_USE_C99 guard to c_compatibility/stdio.h
fixes this problem.

2002-09-26  Danny Smith  <dannysmith@users.sourceforge.net>

	* include/c_compatibility/stdio.h (_GLIBCPP_USE_C99):
	Use.

Index: stdio.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c_compatibility/stdio.h,v
retrieving revision 1.1
diff -c -3 -p -r1.1 stdio.h
*** stdio.h	21 Jun 2002 20:20:44 -0000	1.1
--- stdio.h	25 Sep 2002 11:27:30 -0000
*************** using std::fprintf;
*** 49,64 ****
  using std::fscanf;
  using std::printf;
  using std::scanf;
- using std::snprintf;
  using std::sprintf;
  using std::sscanf;
  using std::vfprintf;
- using std::vfscanf;
  using std::vprintf;
- using std::vscanf;
- using std::vsnprintf;
  using std::vsprintf;
  using std::vsscanf;
  using std::fgetc;
  using std::fgets;
  using std::fputc;
--- 49,68 ----
  using std::fscanf;
  using std::printf;
  using std::scanf;
  using std::sprintf;
  using std::sscanf;
  using std::vfprintf;
  using std::vprintf;
  using std::vsprintf;
+ 
+ #if _GLIBCPP_USE_C99
+ using std::snprintf;
+ using std::vfscanf;
+ using std::vsnprintf;
+ using std::vscanf;
  using std::vsscanf;
+ #endif
+ 
  using std::fgetc;
  using std::fgets;
  using std::fputc;

http://mobile.yahoo.com.au - Yahoo! Messenger for SMS
- Always be connected to your Messenger Friends


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