ERR: Need to move forward declarations of non-ansi streams into std namespace when it is available.

This commit is contained in:
Brad King 2003-05-12 13:27:00 -04:00
parent b910480e32
commit 249d29030e
1 changed files with 12 additions and 8 deletions

View File

@ -27,17 +27,21 @@
#if !defined(KWSYS_NO_ANSI_STREAM_HEADERS) #if !defined(KWSYS_NO_ANSI_STREAM_HEADERS)
# include <iosfwd> # include <iosfwd>
#else #else
class fstream;
class ifstream;
class ios;
class istream;
class ofstream;
class ostream;
# if !defined(KWSYS_NO_STD_NAMESPACE) # if !defined(KWSYS_NO_STD_NAMESPACE)
namespace std namespace std
{ {
# endif using ::fstream;
class fstream; using ::ifstream;
class ifstream; using ::ios;
class ios; using ::istream;
class istream; using ::ofstream;
class ofstream; using ::ostream;
class ostream;
# if !defined(KWSYS_NO_STD_NAMESPACE)
} }
# endif # endif
#endif #endif