nuclear@0: /* nuclear@0: --------------------------------------------------------------------------- nuclear@0: Open Asset Import Library (assimp) nuclear@0: --------------------------------------------------------------------------- nuclear@0: nuclear@0: Copyright (c) 2006-2012, assimp team nuclear@0: nuclear@0: All rights reserved. nuclear@0: nuclear@0: Redistribution and use of this software in source and binary forms, nuclear@0: with or without modification, are permitted provided that the following nuclear@0: conditions are met: nuclear@0: nuclear@0: * Redistributions of source code must retain the above nuclear@0: copyright notice, this list of conditions and the nuclear@0: following disclaimer. nuclear@0: nuclear@0: * Redistributions in binary form must reproduce the above nuclear@0: copyright notice, this list of conditions and the nuclear@0: following disclaimer in the documentation and/or other nuclear@0: materials provided with the distribution. nuclear@0: nuclear@0: * Neither the name of the assimp team, nor the names of its nuclear@0: contributors may be used to endorse or promote products nuclear@0: derived from this software without specific prior nuclear@0: written permission of the assimp team. nuclear@0: nuclear@0: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS nuclear@0: "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT nuclear@0: LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR nuclear@0: A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT nuclear@0: OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, nuclear@0: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT nuclear@0: LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, nuclear@0: DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY nuclear@0: THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT nuclear@0: (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE nuclear@0: OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. nuclear@0: --------------------------------------------------------------------------- nuclear@0: */ nuclear@0: nuclear@0: /** @file AssimpPCH.h nuclear@0: * PCH master include. Every unit in Assimp has to include it. nuclear@0: */ nuclear@0: nuclear@0: #ifndef ASSIMP_PCH_INCLUDED nuclear@0: #define ASSIMP_PCH_INCLUDED nuclear@0: #define ASSIMP_INTERNAL_BUILD nuclear@0: nuclear@0: // ---------------------------------------------------------------------------------------- nuclear@0: /* General compile config taken from defs.h. It is important that the user compiles nuclear@0: * using exactly the same settings in defs.h. Settings in AssimpPCH.h may differ, nuclear@0: * they won't affect the public API. nuclear@0: */ nuclear@0: #include "assimp/defs.h" nuclear@0: nuclear@0: // Include our stdint.h replacement header for MSVC, take the global header for gcc/mingw nuclear@0: #if defined( _MSC_VER) && (_MSC_VER < 1600) nuclear@0: # include "pstdint.h" nuclear@0: #else nuclear@0: # include nuclear@0: #endif nuclear@0: nuclear@0: /* Undefine the min/max macros defined by some platform headers (namely Windows.h) to nuclear@0: * avoid obvious conflicts with std::min() and std::max(). nuclear@0: */ nuclear@0: #undef min nuclear@0: #undef max nuclear@0: nuclear@0: /* Concatenate two tokens after evaluating them nuclear@0: */ nuclear@0: #define _AI_CONCAT(a,b) a ## b nuclear@0: #define AI_CONCAT(a,b) _AI_CONCAT(a,b) nuclear@0: nuclear@0: /* Helper macro to set a pointer to NULL in debug builds nuclear@0: */ nuclear@0: #if (defined _DEBUG) nuclear@0: # define AI_DEBUG_INVALIDATE_PTR(x) x = NULL; nuclear@0: #else nuclear@0: # define AI_DEBUG_INVALIDATE_PTR(x) nuclear@0: #endif nuclear@0: nuclear@0: /* Beginning with MSVC8 some C string manipulation functions are mapped to their _safe_ nuclear@0: * counterparts (e.g. _itoa_s). This avoids a lot of trouble with deprecation warnings. nuclear@0: */ nuclear@0: #if _MSC_VER >= 1400 && !(defined _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES) nuclear@0: # define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1 nuclear@0: #endif nuclear@0: nuclear@0: /* size_t to unsigned int, possible loss of data. The compiler is right with his warning nuclear@0: * but this loss of data won't be a problem for us. So shut up, little boy. nuclear@0: */ nuclear@0: #ifdef _MSC_VER nuclear@0: # pragma warning (disable : 4267) nuclear@0: #endif nuclear@0: nuclear@0: // ---------------------------------------------------------------------------------------- nuclear@0: /* Actually that's not required for MSVC. It is included somewhere in the deeper parts of nuclear@0: * the MSVC STL but it's necessary for proper build with STLport. nuclear@0: */ nuclear@0: #include nuclear@0: nuclear@0: // Runtime/STL headers nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: nuclear@0: // Boost headers nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: #include nuclear@0: nuclear@0: // Public ASSIMP headers nuclear@0: #include "assimp/DefaultLogger.hpp" nuclear@0: #include "assimp/IOStream.hpp" nuclear@0: #include "assimp/IOSystem.hpp" nuclear@0: #include "assimp/scene.h" nuclear@0: #include "assimp/importerdesc.h" nuclear@0: #include "assimp/postprocess.h" nuclear@0: #include "assimp/Importer.hpp" nuclear@0: #include "assimp/Exporter.hpp" nuclear@0: nuclear@0: // Internal utility headers nuclear@0: #include "BaseImporter.h" nuclear@0: #include "StringComparison.h" nuclear@0: #include "StreamReader.h" nuclear@0: #include "qnan.h" nuclear@0: #include "ScenePrivate.h" nuclear@0: nuclear@0: nuclear@0: // We need those constants, workaround for any platforms where nobody defined them yet nuclear@0: #if (!defined SIZE_MAX) nuclear@0: # define SIZE_MAX (~((size_t)0)) nuclear@0: #endif nuclear@0: nuclear@0: #if (!defined UINT_MAX) nuclear@0: # define UINT_MAX (~((unsigned int)0)) nuclear@0: #endif nuclear@0: nuclear@0: nuclear@0: #endif // !! ASSIMP_PCH_INCLUDED