2
0

JITClientStub.c 944 B

1234567891011121314151617181920212223
  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 warning(push)
  6. // strcpy has inconsistent annotation
  7. #pragma warning(disable: 28252)
  8. #pragma warning(disable: 28253)
  9. // HACK HACK HACK
  10. // MIDL gives compile error if using [system_handle] with stub targetting win8 or below,
  11. // but there is no issue unless the function using [system_handle] is actually called.
  12. // We have runtime check that prevents that function from being used on old OS,
  13. // so change #define here to bypass the error
  14. #if !(0x603 <= _WIN32_WINNT)
  15. #undef _WIN32_WINNT
  16. #define _WIN32_WINNT 0x603
  17. #endif
  18. #include "ChakraJIT_c.c"
  19. #pragma warning(pop)