OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / ndk / sources / cxx-stl / stlport / stlport / strstream
1 /*
2  * Copyright (c) 1999
3  * Silicon Graphics Computer Systems, Inc.
4  *
5  * Copyright (c) 1999
6  * Boris Fomitchev
7  *
8  * This material is provided "as is", with absolutely no warranty expressed
9  * or implied. Any use is at your own risk.
10  *
11  * Permission to use or copy this software for any purpose is hereby granted
12  * without fee, provided the above notices are retained on all copies.
13  * Permission to modify the code and to distribute modified code is granted,
14  * provided the above notices are retained, and a notice that the code was
15  * modified is included with the above copyright notice.
16  *
17  */
18 // WARNING: The classes defined in this header are DEPRECATED.  This
19 // header is defined in section D.7.1 of the C++ standard, and it
20 // MAY BE REMOVED in a future standard revision.  You should use the
21 // header <sstream> instead.
22
23
24 #ifndef _STLP_STRSTREAM
25
26 #ifndef _STLP_OUTERMOST_HEADER_ID
27 #  define _STLP_OUTERMOST_HEADER_ID 0x1070
28 #  include <stl/_prolog.h>
29 #  define _STLP_STRSTREAM
30 #endif
31
32 #if (_STLP_OUTERMOST_HEADER_ID == 0x1070) && \
33    !(defined (_STLP_NO_IOSTREAMS) && defined (_STLP_IMPORT_VENDOR_STD))
34 #  include <stl/_ioserr.h>
35
36 #  ifndef _STLP_INTERNAL_STRSTREAM
37 #    include <stl/_strstream.h>
38 #  endif
39 #endif
40
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
52 #if (_STLP_OUTERMOST_HEADER_ID == 0x1070)
53 #  include <stl/_epilog.h>
54 #  undef _STLP_OUTERMOST_HEADER_ID
55 #endif
56
57 #endif /* _STLP_STRSTREAM */
58
59 // Local Variables:
60 // mode:C++
61 // End: