Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.97 KB | None | 0 0
  1. diff --git a/mingw-w64-headers/crt/_mingw.h.in b/mingw-w64-headers/crt/_mingw.h.in
  2. index 7e80a243..d026da3a 100644
  3. --- a/mingw-w64-headers/crt/_mingw.h.in
  4. +++ b/mingw-w64-headers/crt/_mingw.h.in
  5. @@ -222,7 +222,11 @@ limitations in handling dllimport attribute.  */
  6.  
  7.  #ifndef __MSVCRT_VERSION__
  8.  /*  High byte is the major version, low byte is the minor. */
  9. -# define __MSVCRT_VERSION__ @DEFAULT_MSVCRT_VERSION@
  10. +# ifndef _UCRT
  11. +#  define __MSVCRT_VERSION__ @DEFAULT_MSVCRT_VERSION@
  12. +# else
  13. +#  define __MSVCRT_VERSION__ 0x1400
  14. +# endif
  15.  #endif
  16.  
  17.  
  18. diff --git a/mingw-w64-headers/crt/corecrt.h b/mingw-w64-headers/crt/corecrt.h
  19. index 44d32d62..e7078d66 100644
  20. --- a/mingw-w64-headers/crt/corecrt.h
  21. +++ b/mingw-w64-headers/crt/corecrt.h
  22. @@ -15,6 +15,10 @@
  23.  #pragma pack(push,_CRT_PACKING)
  24.  #endif
  25.  
  26. +#if !defined(_UCRT) && (__MSVCRT_VERSION__ >= 0x1400)
  27. +#define _UCRT
  28. +#endif
  29. +
  30.  #ifdef __ERRCODE_DEFINED_MS
  31.  /* #define __ERRCODE_DEFINED_MS */
  32.  typedef int errcode;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement