73 lines · plain
1// -*- C++ -*-2//===----------------------------------------------------------------------===//3//4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.5// See https://llvm.org/LICENSE.txt for license information.6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception7//8//===----------------------------------------------------------------------===//9 10#ifndef _LIBCPP_IOSTREAM11#define _LIBCPP_IOSTREAM12 13/*14 iostream synopsis15 16#include <ios>17#include <istream>18#include <ostream>19#include <streambuf>20 21namespace std {22 23extern istream cin;24extern ostream cout;25extern ostream cerr;26extern ostream clog;27extern wistream wcin;28extern wostream wcout;29extern wostream wcerr;30extern wostream wclog;31 32} // std33 34*/35 36#if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)37# include <__cxx03/iostream>38#else39# include <__config>40# include <version>41 42// standard-mandated includes43 44// [iostream.syn]45# include <ios>46# include <istream>47# include <ostream>48# include <streambuf>49 50# if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)51# pragma GCC system_header52# endif53 54_LIBCPP_BEGIN_NAMESPACE_STD55 56extern _LIBCPP_EXPORTED_FROM_ABI istream cin;57extern _LIBCPP_EXPORTED_FROM_ABI ostream cout;58extern _LIBCPP_EXPORTED_FROM_ABI ostream cerr;59extern _LIBCPP_EXPORTED_FROM_ABI ostream clog;60 61# if _LIBCPP_HAS_WIDE_CHARACTERS62extern _LIBCPP_EXPORTED_FROM_ABI wistream wcin;63extern _LIBCPP_EXPORTED_FROM_ABI wostream wcout;64extern _LIBCPP_EXPORTED_FROM_ABI wostream wcerr;65extern _LIBCPP_EXPORTED_FROM_ABI wostream wclog;66# endif67 68_LIBCPP_END_NAMESPACE_STD69 70#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)71 72#endif // _LIBCPP_IOSTREAM73