/*
 * Copyright (c) 1999
 * Silicon Graphics Computer Systems, Inc.
 *
 * Copyright (c) 1999 
 * Boris Fomitchev
 *
 * This material is provided "as is", with absolutely no warranty expressed
 * or implied. Any use is at your own risk.
 *
 * Permission to use or copy this software for any purpose is hereby granted 
 * without fee, provided the above notices are retained on all copies.
 * Permission to modify the code and to distribute modified code is granted,
 * provided the above notices are retained, and a notice that the code was
 * modified is included with the above copyright notice.
 *
 */ 

#ifndef __SGI_STL_IOSTREAM
#define __SGI_STL_IOSTREAM

# ifndef __STL_OUTERMOST_HEADER_ID
#  define __STL_OUTERMOST_HEADER_ID ZZ
#  include <stl/_prolog.h>
# endif

#if defined(__sgi) && !defined(__GNUC__) && !defined(_STANDARD_C_PLUS_PLUS)
#error This header file requires the -LANG:std option
#endif

# if defined (__SGI_STL_OWN_IOSTREAMS)

#include <iosfwd>
#include <istream>
#include <ostream>

__STL_BEGIN_NAMESPACE

// Note: cin and wcin are both associated with stdio.  The C standard
// (Amendment 1, section 4.6.2.1) says that it is an error to mix
// wide- and narrow-oriented I/O on the same stream.  This implies
// that it is an error to use both cin and wcin in the same C++
// program; the same applies to cout and wcout, and cerr/clog and
// wcerr/wclog.

extern __STL_DECLSPEC istream cin;
extern __STL_DECLSPEC ostream cout;
extern __STL_DECLSPEC ostream cerr;
extern __STL_DECLSPEC ostream clog;

# ifndef __STL_NO_WCHAR_T
extern __STL_DECLSPEC wistream wcin;
extern __STL_DECLSPEC wostream wcout;
extern __STL_DECLSPEC wostream wcerr;
extern __STL_DECLSPEC wostream wclog;
# endif

# ifndef __IOS_BASE_INITIALIZED
#  define __IOS_BASE_INITIALIZED
// Global initializer object, to ensure construction of static objects.
static ios_base::Init __initializer;
# endif

__STL_END_NAMESPACE

# elif defined ( __STL_USE_NO_IOSTREAMS )
#  include <stl/_null_stream.h>
# else

#  include <wrap_std/iostream>

# endif /* STL_USE_NO_IOSTREAMS */

# if (__STL_OUTERMOST_HEADER_ID == ZZ)
#  include <stl/_epilog.h>
#  undef __STL_OUTERMOST_HEADER_ID
# endif

#endif /* __SGI_STL_IOSTREAM */

// Local Variables:
// mode:C++
// End:
