vrshoot

view libs/assimp/AssimpPCH.h @ 2:334d17aed7de

visual studio project files
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 02 Feb 2014 18:36:38 +0200
parents
children
line source
1 /*
2 ---------------------------------------------------------------------------
3 Open Asset Import Library (assimp)
4 ---------------------------------------------------------------------------
6 Copyright (c) 2006-2012, assimp team
8 All rights reserved.
10 Redistribution and use of this software in source and binary forms,
11 with or without modification, are permitted provided that the following
12 conditions are met:
14 * Redistributions of source code must retain the above
15 copyright notice, this list of conditions and the
16 following disclaimer.
18 * Redistributions in binary form must reproduce the above
19 copyright notice, this list of conditions and the
20 following disclaimer in the documentation and/or other
21 materials provided with the distribution.
23 * Neither the name of the assimp team, nor the names of its
24 contributors may be used to endorse or promote products
25 derived from this software without specific prior
26 written permission of the assimp team.
28 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39 ---------------------------------------------------------------------------
40 */
42 /** @file AssimpPCH.h
43 * PCH master include. Every unit in Assimp has to include it.
44 */
46 #ifndef ASSIMP_PCH_INCLUDED
47 #define ASSIMP_PCH_INCLUDED
48 #define ASSIMP_INTERNAL_BUILD
50 // ----------------------------------------------------------------------------------------
51 /* General compile config taken from defs.h. It is important that the user compiles
52 * using exactly the same settings in defs.h. Settings in AssimpPCH.h may differ,
53 * they won't affect the public API.
54 */
55 #include "assimp/defs.h"
57 // Include our stdint.h replacement header for MSVC, take the global header for gcc/mingw
58 #if defined( _MSC_VER) && (_MSC_VER < 1600)
59 # include "pstdint.h"
60 #else
61 # include <stdint.h>
62 #endif
64 /* Undefine the min/max macros defined by some platform headers (namely Windows.h) to
65 * avoid obvious conflicts with std::min() and std::max().
66 */
67 #undef min
68 #undef max
70 /* Concatenate two tokens after evaluating them
71 */
72 #define _AI_CONCAT(a,b) a ## b
73 #define AI_CONCAT(a,b) _AI_CONCAT(a,b)
75 /* Helper macro to set a pointer to NULL in debug builds
76 */
77 #if (defined _DEBUG)
78 # define AI_DEBUG_INVALIDATE_PTR(x) x = NULL;
79 #else
80 # define AI_DEBUG_INVALIDATE_PTR(x)
81 #endif
83 /* Beginning with MSVC8 some C string manipulation functions are mapped to their _safe_
84 * counterparts (e.g. _itoa_s). This avoids a lot of trouble with deprecation warnings.
85 */
86 #if _MSC_VER >= 1400 && !(defined _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES)
87 # define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
88 #endif
90 /* size_t to unsigned int, possible loss of data. The compiler is right with his warning
91 * but this loss of data won't be a problem for us. So shut up, little boy.
92 */
93 #ifdef _MSC_VER
94 # pragma warning (disable : 4267)
95 #endif
97 // ----------------------------------------------------------------------------------------
98 /* Actually that's not required for MSVC. It is included somewhere in the deeper parts of
99 * the MSVC STL but it's necessary for proper build with STLport.
100 */
101 #include <ctype.h>
103 // Runtime/STL headers
104 #include <vector>
105 #include <list>
106 #include <map>
107 #include <set>
108 #include <string>
109 #include <sstream>
110 #include <iomanip>
111 #include <cassert>
112 #include <stack>
113 #include <queue>
114 #include <iostream>
115 #include <algorithm>
116 #include <numeric>
117 #include <new>
118 #include <cstdio>
119 #include <limits.h>
120 #include <memory>
122 // Boost headers
123 #include <boost/pointer_cast.hpp>
124 #include <boost/scoped_ptr.hpp>
125 #include <boost/scoped_array.hpp>
126 #include <boost/shared_ptr.hpp>
127 #include <boost/shared_array.hpp>
128 #include <boost/make_shared.hpp>
129 #include <boost/format.hpp>
130 #include <boost/foreach.hpp>
131 #include <boost/static_assert.hpp>
132 #include <boost/lexical_cast.hpp>
134 // Public ASSIMP headers
135 #include "assimp/DefaultLogger.hpp"
136 #include "assimp/IOStream.hpp"
137 #include "assimp/IOSystem.hpp"
138 #include "assimp/scene.h"
139 #include "assimp/importerdesc.h"
140 #include "assimp/postprocess.h"
141 #include "assimp/Importer.hpp"
142 #include "assimp/Exporter.hpp"
144 // Internal utility headers
145 #include "BaseImporter.h"
146 #include "StringComparison.h"
147 #include "StreamReader.h"
148 #include "qnan.h"
149 #include "ScenePrivate.h"
152 // We need those constants, workaround for any platforms where nobody defined them yet
153 #if (!defined SIZE_MAX)
154 # define SIZE_MAX (~((size_t)0))
155 #endif
157 #if (!defined UINT_MAX)
158 # define UINT_MAX (~((unsigned int)0))
159 #endif
162 #endif // !! ASSIMP_PCH_INCLUDED