AssimpPCH.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /*
  2. ---------------------------------------------------------------------------
  3. Open Asset Import Library (ASSIMP)
  4. ---------------------------------------------------------------------------
  5. Copyright (c) 2006-2008, ASSIMP Development Team
  6. All rights reserved.
  7. Redistribution and use of this software in source and binary forms,
  8. with or without modification, are permitted provided that the following
  9. conditions are met:
  10. * Redistributions of source code must retain the above
  11. copyright notice, this list of conditions and the
  12. following disclaimer.
  13. * Redistributions in binary form must reproduce the above
  14. copyright notice, this list of conditions and the
  15. following disclaimer in the documentation and/or other
  16. materials provided with the distribution.
  17. * Neither the name of the ASSIMP team, nor the names of its
  18. contributors may be used to endorse or promote products
  19. derived from this software without specific prior
  20. written permission of the ASSIMP Development Team.
  21. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  22. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  23. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  24. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  25. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  26. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  27. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  28. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  29. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  30. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  31. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  32. ---------------------------------------------------------------------------
  33. */
  34. #ifndef ASSIMP_PCH_INCLUDED
  35. #define ASSIMP_PCH_INCLUDED
  36. #define ASSIMP_INTERNAL_BUILD
  37. // Compile config
  38. #include "../include/aiDefines.h"
  39. // Undefine the min/max macros defined by some platform headers
  40. #undef min
  41. #undef max
  42. // Concatenate two tokens after evaluating them
  43. #define AI_CONCAT(a,b) a ## b
  44. // Helper macro that sets a pointer to NULL in debug builds
  45. #if (defined _DEBUG)
  46. # define AI_DEBUG_INVALIDATE_PTR(x) x = NULL;
  47. #else
  48. # define AI_DEBUG_INVALIDATE_PTR(x)
  49. #endif
  50. // If we have at least VC8 some C string manipulation functions
  51. // are mapped to their safe _s counterparts (e.g. _itoa_s).
  52. #if _MSC_VER >= 1400 && !(defined _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES)
  53. # define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
  54. #endif
  55. // size_t to unsigned int, possible loss of data.
  56. // Yes, the compiler is right with his warning, but this loss of data
  57. // won't be a problem for us. So shut up little boy.
  58. #ifdef _MSC_VER
  59. # pragma warning (disable : 4267)
  60. #endif
  61. // Actually that's not required for MSVC (it is included somewhere in
  62. // the STL ..) but it is necessary for build with STLport.
  63. #include <ctype.h>
  64. // Runtime/STL headers
  65. #include <vector>
  66. #include <list>
  67. #include <map>
  68. #include <set>
  69. #include <string>
  70. #include <sstream>
  71. #include <iomanip>
  72. #include <cassert>
  73. #include <stack>
  74. #include <queue>
  75. #include <iostream>
  76. #include <algorithm>
  77. #include <numeric>
  78. #include <new>
  79. // Public ASSIMP headers
  80. #include "../include/DefaultLogger.h"
  81. #include "../include/IOStream.h"
  82. #include "../include/IOSystem.h"
  83. #include "../include/aiScene.h"
  84. #include "../include/aiPostProcess.h"
  85. #include "../include/assimp.hpp"
  86. // Internal utility headers
  87. #include "BaseImporter.h"
  88. #include "MaterialSystem.h"
  89. #include "StringComparison.h"
  90. #include "StreamReader.h"
  91. #include "qnan.h"
  92. // boost headers - take them from the workaround dir if possible
  93. #ifdef ASSIMP_BUILD_BOOST_WORKAROUND
  94. # include "../include/BoostWorkaround/boost/scoped_ptr.hpp"
  95. # include "../include/BoostWorkaround/boost/scoped_array.hpp"
  96. # include "../include/BoostWorkaround/boost/format.hpp"
  97. # include "../include/BoostWorkaround/boost/foreach.hpp"
  98. # include "../include/BoostWorkaround/boost/static_assert.hpp"
  99. #else
  100. # include <boost/scoped_ptr.hpp>
  101. # include <boost/scoped_array.hpp>
  102. # include <boost/format.hpp>
  103. # include <boost/foreach.hpp>
  104. # include <boost/static_assert.hpp>
  105. #endif // ! ASSIMP_BUILD_BOOST_WORKAROUND
  106. #endif // !! ASSIMP_PCH_INCLUDED