CmPrerequisitesUtil.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma once
  2. #include <assert.h>
  3. // 0 - No thread support
  4. // 1 - Render system is thread safe (TODO: NOT WORKING and will probably be removed)
  5. // 2 - Thread support but render system can only be accessed from main thread
  6. #define CM_THREAD_SUPPORT 2
  7. #define CM_PROFILING_ENABLED 1
  8. // Platform-specific stuff
  9. #include "CmPlatformDefines.h"
  10. #if CM_COMPILER == CM_COMPILER_MSVC
  11. // TODO - This is not deactivated anywhere, therefore it applies to any file that includes this header.
  12. // - Right now I don't have an easier way to apply these warnings globally so I'm keeping it this way.
  13. // Secure versions aren't multiplatform, so we won't be using them
  14. #define _CRT_SECURE_NO_WARNINGS
  15. // disable: "<type> needs to have dll-interface to be used by clients'
  16. // Happens on STL member variables which are not public therefore is ok
  17. # pragma warning (disable: 4251)
  18. // disable: 'X' Function call with parameters that may be unsafe
  19. // Gets triggered when I include boost UUID header, for no valid reason
  20. # pragma warning(disable: 4996)
  21. #endif
  22. // Short-hand names for various built-in types
  23. #include "CmTypes.h"
  24. #include "CmMemoryAllocator.h"
  25. // Useful threading defines
  26. #include "CmThreadDefines.h"
  27. // Commonly used standard headers
  28. #include "CmStdHeaders.h"
  29. // Forward declarations
  30. #include "CmFwdDeclUtil.h"
  31. #include "CmRTTIPrerequisites.h"
  32. #include "CmString.h"