1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 //1. Force inclusion of a std:: using header to ensure the stlport define
28 //of std as "stlport"
29 #include <algorithm>
30 #if defined(ADAPT_EXT_STL)
31 //2. Force inclusion of stlport headers to get their stlport:: definitions
32 #   include <ostream>
33 #   include <istream>
34 #   include <fstream>
35 #   include <iostream>
36 #   include <sstream>
37 #   include <vector>
38 #   include <deque>
39 #   include <set>
40 #   include <list>
41 #   include <map>
42 //3. Now force inclusion of native headers to get their std:: definitions
43 #   if defined(std)
44 #       define std_was_redefined_as_stlport std
45 #       undef std
46 #       define _STLP_OUTERMOST_HEADER_ID 0xdeadbeaf
47 #       if defined(_GNUC__)
48 #           pragma GCC visibility push(default)
49 #       endif
50 #       include _STLP_NATIVE_HEADER(exception_defines.h)
51 #       include _STLP_NATIVE_HEADER(limits)
52 #       include _STLP_NATIVE_HEADER(memory)
53 #       include _STLP_NATIVE_HEADER(exception)
54 #       include _STLP_NATIVE_HEADER(iosfwd)
55 #       include _STLP_NATIVE_HEADER(algorithm)
56 #       include _STLP_NATIVE_HEADER(string)
57 #       include _STLP_NATIVE_HEADER(streambuf)
58 #       include _STLP_NATIVE_HEADER(ios)
59 #       include _STLP_NATIVE_HEADER(locale)
60 #       include _STLP_NATIVE_HEADER(stdexcept)
61 #       include _STLP_NATIVE_HEADER(ostream)
62 #       include _STLP_NATIVE_HEADER(istream)
63 #       include _STLP_NATIVE_HEADER(iostream)
64 #       include _STLP_NATIVE_HEADER(sstream)
65 #       include _STLP_NATIVE_HEADER(vector)
66 #       include _STLP_NATIVE_HEADER(deque)
67 #       include _STLP_NATIVE_HEADER(set)
68 #       include _STLP_NATIVE_HEADER(list)
69 #       include _STLP_NATIVE_HEADER(map)
70 #       if defined(_GNUC__)
71 #           pragma GCC visibility pop
72 #       endif
73 #   endif
74 #endif
75 //ext_std resolves to the std that external c++ libs, e.g. Graphite were built
76 //against regardless of whether that is stlport or system stl
77 namespace ext_std = std;
78