strstream 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /******************************************************************************/
  2. /* This file was taken from STLport <www.stlport.org> and modified by */
  3. /* Texas Instruments. */
  4. /******************************************************************************/
  5. /*
  6. * Copyright (c) 1999
  7. * Silicon Graphics Computer Systems, Inc.
  8. *
  9. * Copyright (c) 1999
  10. * Boris Fomitchev
  11. *
  12. * Copyright (c) 2014-2014 Texas Instruments Incorporated
  13. *
  14. * This material is provided "as is", with absolutely no warranty expressed
  15. * or implied. Any use is at your own risk.
  16. *
  17. * Permission to use or copy this software for any purpose is hereby granted
  18. * without fee, provided the above notices are retained on all copies.
  19. * Permission to modify the code and to distribute modified code is granted,
  20. * provided the above notices are retained, and a notice that the code was
  21. * modified is included with the above copyright notice.
  22. *
  23. */
  24. // WARNING: The classes defined in this header are DEPRECATED. This
  25. // header is defined in section D.7.1 of the C++ standard, and it
  26. // MAY BE REMOVED in a future standard revision. You should use the
  27. // header <sstream> instead.
  28. #ifndef _STLP_STRSTREAM
  29. #ifndef _STLP_OUTERMOST_HEADER_ID
  30. # define _STLP_OUTERMOST_HEADER_ID 0x1070
  31. # include <s__prolog.h>
  32. # define _STLP_STRSTREAM
  33. #endif
  34. #if (_STLP_OUTERMOST_HEADER_ID == 0x1070) && \
  35. !(defined (_STLP_NO_IOSTREAMS) && defined (_STLP_IMPORT_VENDOR_STD))
  36. # include <s__ioserr.h>
  37. # ifndef _STLP_INTERNAL_STRSTREAM
  38. # include <s__strstream.h>
  39. # endif
  40. #endif
  41. #if (_STLP_OUTERMOST_HEADER_ID != 0x1070) || defined (_STLP_IMPORT_VENDOR_STD)
  42. /* Even if deprecated strstream header is still part of the Standard. Remove
  43. * _STLP_IMPORT_VENDOR_STD check if the native compiler library do not grant
  44. * it anymore. */
  45. # if defined (_STLP_HAS_INCLUDE_NEXT)
  46. # include_next <strstream>
  47. # else
  48. # include _STLP_NATIVE_HEADER(strstream)
  49. # endif
  50. #endif
  51. #if (_STLP_OUTERMOST_HEADER_ID == 0x1070)
  52. # include <s__epilog.h>
  53. # undef _STLP_OUTERMOST_HEADER_ID
  54. #endif
  55. #endif /* _STLP_STRSTREAM */
  56. // Local Variables:
  57. // mode:C++
  58. // End: