1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 //1. Force inclusion of a std:: using header to ensure the stlport define
24 //of std as "stlport"
25 #include <algorithm>
26 #if defined(ADAPT_EXT_STL)
27 //2. Force inclusion of stlport headers to get their stlport:: definitions
28 #   include <ostream>
29 #   include <istream>
30 #   include <fstream>
31 #   include <iostream>
32 #   include <sstream>
33 #   include <vector>
34 #   include <deque>
35 #   include <set>
36 #   include <list>
37 #   include <map>
38 //3. Now force inclusion of native headers to get their std:: definitions
39 #   if defined(std)
40 #       define std_was_redefined_as_stlport std
41 #       undef std
42 #       define _STLP_OUTERMOST_HEADER_ID 0xdeadbeaf
43 #       if defined(_GNUC__)
44 #           pragma GCC visibility push(default)
45 #       endif
46 #       include _STLP_NATIVE_HEADER(exception_defines.h)
47 #       include _STLP_NATIVE_HEADER(limits)
48 #       include _STLP_NATIVE_HEADER(memory)
49 #       include _STLP_NATIVE_HEADER(exception)
50 #       include _STLP_NATIVE_HEADER(iosfwd)
51 #       include _STLP_NATIVE_HEADER(algorithm)
52 #       include _STLP_NATIVE_HEADER(string)
53 #       include _STLP_NATIVE_HEADER(streambuf)
54 #       include _STLP_NATIVE_HEADER(ios)
55 #       include _STLP_NATIVE_HEADER(locale)
56 #       include _STLP_NATIVE_HEADER(stdexcept)
57 #       include _STLP_NATIVE_HEADER(ostream)
58 #       include _STLP_NATIVE_HEADER(istream)
59 #       include _STLP_NATIVE_HEADER(iostream)
60 #       include _STLP_NATIVE_HEADER(sstream)
61 #       include _STLP_NATIVE_HEADER(vector)
62 #       include _STLP_NATIVE_HEADER(deque)
63 #       include _STLP_NATIVE_HEADER(set)
64 #       include _STLP_NATIVE_HEADER(list)
65 #       include _STLP_NATIVE_HEADER(map)
66 #       if defined(_GNUC__)
67 #           pragma GCC visibility pop
68 #       endif
69 #   endif
70 #endif
71 //ext_std resolves to the std that external c++ libs, e.g. Graphite were built
72 //against regardless of whether that is stlport or system stl
73 namespace ext_std = std;
74