CommonBasic.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #pragma once
  6. #include "Banned.h"
  7. #include "CommonDefines.h"
  8. #define _CRT_RAND_S // Enable rand_s in the CRT
  9. #pragma warning(push)
  10. #pragma warning(disable: 4995) /* 'function': name was marked as #pragma deprecated */
  11. // === Windows Header Files ===
  12. #define INC_OLE2 /* for windows.h */
  13. #define CONST_VTABLE /* for objbase.h */
  14. #include <windows.h>
  15. /* Don't want GetObject and GetClassName to be defined to GetObjectW and GetClassNameW */
  16. #undef GetObject
  17. #undef GetClassName
  18. #undef Yield /* winbase.h defines this but we want to use it for Js::OpCode::Yield; it is Win16 legacy, no harm undef'ing it */
  19. #pragma warning(pop)
  20. // === Core Header Files ===
  21. #include "Core\api.h"
  22. #include "Core\CommonTypedefs.h"
  23. #include "core\CriticalSection.h"
  24. #include "core\Assertions.h"
  25. // === Exceptions Header Files ===
  26. #include "Exceptions\Throw.h"
  27. #include "Exceptions\ExceptionCheck.h"
  28. #include "Exceptions\reporterror.h"