blob: 136a849777fed34d291494bf93dadf696d3e4087 [file] [log] [blame]
Howard Hinnantc51e1022010-05-11 19:42:16 +00001// -*- C++ -*-
2//===--------------------------- iostream ---------------------------------===//
3//
Howard Hinnantc566dc32010-05-11 21:36:01 +00004// The LLVM Compiler Infrastructure
Howard Hinnantc51e1022010-05-11 19:42:16 +00005//
Howard Hinnantee11c312010-11-16 22:09:02 +00006// This file is dual licensed under the MIT and the University of Illinois Open
7// Source Licenses. See LICENSE.TXT for details.
Howard Hinnantc51e1022010-05-11 19:42:16 +00008//
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
22namespace std {
23
24extern istream cin;
25extern ostream cout;
26extern ostream cerr;
27extern ostream clog;
28extern wistream wcin;
29extern wostream wcout;
30extern wostream wcerr;
31extern 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 Hinnantaaaa52b2011-10-17 20:05:10 +000043#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
Howard Hinnantc51e1022010-05-11 19:42:16 +000044#pragma GCC system_header
Howard Hinnantaaaa52b2011-10-17 20:05:10 +000045#endif
Howard Hinnantc51e1022010-05-11 19:42:16 +000046
47_LIBCPP_BEGIN_NAMESPACE_STD
48
Ed Schouten3a75c0b2015-03-26 14:35:46 +000049#ifndef _LIBCPP_HAS_NO_STDIN
Howard Hinnant8331b762013-03-06 23:30:19 +000050extern _LIBCPP_FUNC_VIS istream cin;
Howard Hinnant8331b762013-03-06 23:30:19 +000051extern _LIBCPP_FUNC_VIS wistream wcin;
Ed Schouten3a75c0b2015-03-26 14:35:46 +000052#endif
53#ifndef _LIBCPP_HAS_NO_STDOUT
54extern _LIBCPP_FUNC_VIS ostream cout;
Howard Hinnant8331b762013-03-06 23:30:19 +000055extern _LIBCPP_FUNC_VIS wostream wcout;
Ed Schouten3a75c0b2015-03-26 14:35:46 +000056#endif
57extern _LIBCPP_FUNC_VIS ostream cerr;
Howard Hinnant8331b762013-03-06 23:30:19 +000058extern _LIBCPP_FUNC_VIS wostream wcerr;
Ed Schouten3a75c0b2015-03-26 14:35:46 +000059extern _LIBCPP_FUNC_VIS ostream clog;
Howard Hinnant8331b762013-03-06 23:30:19 +000060extern _LIBCPP_FUNC_VIS wostream wclog;
Howard Hinnantc51e1022010-05-11 19:42:16 +000061
62_LIBCPP_END_NAMESPACE_STD
63
64#endif // _LIBCPP_IOSTREAM