| Howard Hinnant | 3e51952 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 1 | // -*- C++ -*- | 
|  | 2 | //===--------------------------- iostream ---------------------------------===// | 
|  | 3 | // | 
| Howard Hinnant | 5b08a8a | 2010-05-11 21:36:01 +0000 | [diff] [blame] | 4 | //                     The LLVM Compiler Infrastructure | 
| Howard Hinnant | 3e51952 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 5 | // | 
| Howard Hinnant | 412dbeb | 2010-11-16 22:09:02 +0000 | [diff] [blame] | 6 | // This file is dual licensed under the MIT and the University of Illinois Open | 
|  | 7 | // Source Licenses. See LICENSE.TXT for details. | 
| Howard Hinnant | 3e51952 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 8 | // | 
|  | 9 | //===----------------------------------------------------------------------===// | 
|  | 10 |  | 
|  | 11 | #ifndef _LIBCPP_IOSTREAM | 
|  | 12 | #define _LIBCPP_IOSTREAM | 
|  | 13 |  | 
|  | 14 | /* | 
|  | 15 | iostream synopsis | 
|  | 16 |  | 
|  | 17 | #include <ios> | 
|  | 18 | #include <streambuf> | 
|  | 19 | #include <istream> | 
|  | 20 | #include <ostream> | 
|  | 21 |  | 
|  | 22 | namespace std { | 
|  | 23 |  | 
|  | 24 | extern istream cin; | 
|  | 25 | extern ostream cout; | 
|  | 26 | extern ostream cerr; | 
|  | 27 | extern ostream clog; | 
|  | 28 | extern wistream wcin; | 
|  | 29 | extern wostream wcout; | 
|  | 30 | extern wostream wcerr; | 
|  | 31 | extern wostream wclog; | 
|  | 32 |  | 
|  | 33 | }  // std | 
|  | 34 |  | 
|  | 35 | */ | 
|  | 36 |  | 
|  | 37 | #include <__config> | 
|  | 38 | #include <ios> | 
|  | 39 | #include <streambuf> | 
|  | 40 | #include <istream> | 
|  | 41 | #include <ostream> | 
|  | 42 |  | 
| Howard Hinnant | 073458b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 43 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) | 
| Howard Hinnant | 3e51952 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 44 | #pragma GCC system_header | 
| Howard Hinnant | 073458b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 45 | #endif | 
| Howard Hinnant | 3e51952 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 46 |  | 
|  | 47 | _LIBCPP_BEGIN_NAMESPACE_STD | 
|  | 48 |  | 
| Ed Schouten | f4ac884 | 2015-03-26 14:35:46 +0000 | [diff] [blame] | 49 | #ifndef _LIBCPP_HAS_NO_STDIN | 
| Howard Hinnant | 6e41256 | 2013-03-06 23:30:19 +0000 | [diff] [blame] | 50 | extern _LIBCPP_FUNC_VIS istream cin; | 
| Howard Hinnant | 6e41256 | 2013-03-06 23:30:19 +0000 | [diff] [blame] | 51 | extern _LIBCPP_FUNC_VIS wistream wcin; | 
| Ed Schouten | f4ac884 | 2015-03-26 14:35:46 +0000 | [diff] [blame] | 52 | #endif | 
|  | 53 | #ifndef _LIBCPP_HAS_NO_STDOUT | 
|  | 54 | extern _LIBCPP_FUNC_VIS ostream cout; | 
| Howard Hinnant | 6e41256 | 2013-03-06 23:30:19 +0000 | [diff] [blame] | 55 | extern _LIBCPP_FUNC_VIS wostream wcout; | 
| Ed Schouten | f4ac884 | 2015-03-26 14:35:46 +0000 | [diff] [blame] | 56 | #endif | 
|  | 57 | extern _LIBCPP_FUNC_VIS ostream cerr; | 
| Howard Hinnant | 6e41256 | 2013-03-06 23:30:19 +0000 | [diff] [blame] | 58 | extern _LIBCPP_FUNC_VIS wostream wcerr; | 
| Ed Schouten | f4ac884 | 2015-03-26 14:35:46 +0000 | [diff] [blame] | 59 | extern _LIBCPP_FUNC_VIS ostream clog; | 
| Howard Hinnant | 6e41256 | 2013-03-06 23:30:19 +0000 | [diff] [blame] | 60 | extern _LIBCPP_FUNC_VIS wostream wclog; | 
| Howard Hinnant | 3e51952 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 61 |  | 
|  | 62 | _LIBCPP_END_NAMESPACE_STD | 
|  | 63 |  | 
|  | 64 | #endif  // _LIBCPP_IOSTREAM |