Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/mingw-w64-headers/crt/_mingw.h.in b/mingw-w64-headers/crt/_mingw.h.in
- index 7e80a243..d026da3a 100644
- --- a/mingw-w64-headers/crt/_mingw.h.in
- +++ b/mingw-w64-headers/crt/_mingw.h.in
- @@ -222,7 +222,11 @@ limitations in handling dllimport attribute. */
- #ifndef __MSVCRT_VERSION__
- /* High byte is the major version, low byte is the minor. */
- -# define __MSVCRT_VERSION__ @DEFAULT_MSVCRT_VERSION@
- +# ifndef _UCRT
- +# define __MSVCRT_VERSION__ @DEFAULT_MSVCRT_VERSION@
- +# else
- +# define __MSVCRT_VERSION__ 0x1400
- +# endif
- #endif
- diff --git a/mingw-w64-headers/crt/corecrt.h b/mingw-w64-headers/crt/corecrt.h
- index 44d32d62..e7078d66 100644
- --- a/mingw-w64-headers/crt/corecrt.h
- +++ b/mingw-w64-headers/crt/corecrt.h
- @@ -15,6 +15,10 @@
- #pragma pack(push,_CRT_PACKING)
- #endif
- +#if !defined(_UCRT) && (__MSVCRT_VERSION__ >= 0x1400)
- +#define _UCRT
- +#endif
- +
- #ifdef __ERRCODE_DEFINED_MS
- /* #define __ERRCODE_DEFINED_MS */
- typedef int errcode;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement