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]

include strstream instead of strstream.h


Hi,

I got the following compiler warning when trying to
compile the latest gcc 3.0.1 snapshot with gcc 3.1:

==========================================================================
In file included from /usr/src/redhat/BUILD/gcc/obj-i386-linux/i386-pc-linux-gnu/libstdc++-v3/include/backward/strstream:51,
                 from /usr/src/redhat/BUILD/gcc/obj-i386-linux/i386-pc-linux-gnu/libstdc++-v3/include/backward/strstream.h:33,
                 from ../../../../libstdc++-v3/src/strstream.cc:50:
/usr/src/redhat/BUILD/gcc/obj-i386-linux/i386-pc-linux-gnu/libstdc++-v3/include/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please use the <X> header instead of <X.h> header for 'C++' includes and use the <cX> header instead of <X.h> header for 'C' includes. To disable this warning use -Wno-deprecated
==========================================================================

This patch fixes it:

Index: strstream.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/src/strstream.cc,v
retrieving revision 1.8
diff -u -r1.8 strstream.cc
--- strstream.cc        2001/06/27 17:09:53     1.8
+++ strstream.cc        2001/08/11 19:54:57
@@ -47,7 +47,7 @@
 // MAY BE REMOVED in a future standard revision.  You should use the
 // header <sstream> instead.
 
-#include <strstream.h>
+#include <strstream>
 #include <algorithm>
 #include <new>
 #include <stdlib.h>

-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@mediaone.net          


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