CmPrerequisitesUtil.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. // 0 - No thread support
  25. // 1 - Render system is thread safe (TODO: NOT WORKING and will probably be removed)
  26. // 2 - Thread support but render system can only be accessed from main thread
  27. #define CM_THREAD_SUPPORT 2
  28. #define CM_PROFILING_ENABLED 1
  29. // Platform-specific stuff
  30. #include "CmPlatformDefines.h"
  31. #if CM_COMPILER == CM_COMPILER_MSVC
  32. // TODO - This is not deactivated anywhere, therefore it applies to any file that includes this header.
  33. // - Right now I don't have an easier way to apply these warnings globally so I'm keeping it this way.
  34. // Secure versions aren't multiplatform, so we won't be using them
  35. #define _CRT_SECURE_NO_WARNINGS
  36. // disable: "<type> needs to have dll-interface to be used by clients'
  37. // Happens on STL member variables which are not public therefore is ok
  38. # pragma warning (disable: 4251)
  39. // disable: 'X' Function call with parameters that may be unsafe
  40. // Gets triggered when I include boost UUID header, for no valid reason
  41. # pragma warning(disable: 4996)
  42. #endif
  43. // Short-hand names for various built-in types
  44. #include "CmTypes.h"
  45. #include "CmMemoryAllocator.h"
  46. // Useful threading defines
  47. #include "CmThreadDefines.h"
  48. // Commonly used standard headers
  49. #include "CmStdHeaders.h"
  50. // Forward declarations
  51. #include "CmFwdDeclUtil.h"
  52. #include "CmRTTIPrerequisites.h"
  53. #include "CmString.h"