CmPrerequisitesUtil.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*-------------------------------------------------------------------------
  2. This source file is a part of OGRE
  3. (Object-oriented Graphics Rendering Engine)
  4. For the latest info, see http://www.ogre3d.org/
  5. Copyright (c) 2000-2011 Torus Knot Software Ltd
  6. Permission is hereby granted, free of charge, to any person obtaining a copy
  7. of this software and associated documentation files (the "Software"), to deal
  8. in the Software without restriction, including without limitation the rights
  9. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  10. copies of the Software, and to permit persons to whom the Software is
  11. furnished to do so, subject to the following conditions:
  12. The above copyright notice and this permission notice shall be included in
  13. all copies or substantial portions of the Software.
  14. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  20. THE SOFTWARE
  21. -------------------------------------------------------------------------*/
  22. #pragma once
  23. #include <assert.h>
  24. // Platform-specific stuff
  25. #include "CmPlatform.h"
  26. #if CM_COMPILER == CM_COMPILER_MSVC
  27. // TODO - This is not deactivated anywhere, therefore it applies to any file that includes this header.
  28. // - Right now I don't have an easier way to apply these warnings globally so I'm keeping it this way.
  29. // Secure versions aren't multiplatform, so we won't be using them
  30. #define _CRT_SECURE_NO_WARNINGS
  31. // disable: "<type> needs to have dll-interface to be used by clients'
  32. // Happens on STL member variables which are not public therefore is ok
  33. # pragma warning (disable : 4251)
  34. // disable: "no suitable definition provided for explicit template
  35. // instantiation request" Occurs in VC7 for no justifiable reason on all
  36. // #includes of Singleton
  37. # pragma warning( disable: 4661)
  38. #endif
  39. // Short-hand names for various built-in types
  40. #include "CmTypes.h"
  41. // Useful threading defines
  42. #include "CmThreadDefines.h"
  43. // Forward declarations
  44. #include "CmFwdDeclUtil.h"
  45. // Commonly used standard headers
  46. #include "CmStdHeaders.h"
  47. #include "CmString.h"