iostream 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. // -*- C++ -*-
  2. //===--------------------------- iostream ---------------------------------===//
  3. //
  4. // The LLVM Compiler Infrastructure
  5. //
  6. // This file is dual licensed under the MIT and the University of Illinois Open
  7. // Source Licenses. See LICENSE.TXT for details.
  8. //
  9. //===----------------------------------------------------------------------===//
  10. #ifndef _LIBCPP_IOSTREAM
  11. #define _LIBCPP_IOSTREAM
  12. /*
  13. iostream synopsis
  14. #include <ios>
  15. #include <streambuf>
  16. #include <istream>
  17. #include <ostream>
  18. namespace std {
  19. extern istream cin;
  20. extern ostream cout;
  21. extern ostream cerr;
  22. extern ostream clog;
  23. extern wistream wcin;
  24. extern wostream wcout;
  25. extern wostream wcerr;
  26. extern wostream wclog;
  27. } // std
  28. */
  29. // Not supported in SGX.
  30. #include <__config>
  31. #if !defined(_LIBCPP_SGX_CONFIG)
  32. #include <ios>
  33. #include <streambuf>
  34. #include <istream>
  35. #include <ostream>
  36. #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
  37. #pragma GCC system_header
  38. #endif
  39. _LIBCPP_BEGIN_NAMESPACE_STD
  40. #ifndef _LIBCPP_HAS_NO_STDIN
  41. extern _LIBCPP_FUNC_VIS istream cin;
  42. extern _LIBCPP_FUNC_VIS wistream wcin;
  43. #endif
  44. #ifndef _LIBCPP_HAS_NO_STDOUT
  45. extern _LIBCPP_FUNC_VIS ostream cout;
  46. extern _LIBCPP_FUNC_VIS wostream wcout;
  47. #endif
  48. extern _LIBCPP_FUNC_VIS ostream cerr;
  49. extern _LIBCPP_FUNC_VIS wostream wcerr;
  50. extern _LIBCPP_FUNC_VIS ostream clog;
  51. extern _LIBCPP_FUNC_VIS wostream wclog;
  52. _LIBCPP_END_NAMESPACE_STD
  53. #endif // !defined(_LIBCPP_SGX_CONFIG)
  54. #endif // _LIBCPP_IOSTREAM