This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
include strstream instead of strstream.h
- To: libstdc++ at gcc dot gnu dot org
- Subject: include strstream instead of strstream.h
- From: Craig Rodrigues <rodrigc at mediaone dot net>
- Date: Sat, 11 Aug 2001 15:55:27 -0400
- Cc: gcc-patches at gcc dot gnu dot org
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