Module: wine Branch: master Commit: 9ae627316d98b3a0399bd6b5c2257bd47d596bc6 URL: https://source.winehq.org/git/wine.git/?a=commit;h=9ae627316d98b3a0399bd6b5c...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Oct 14 14:05:33 2021 +0200
include: Define all the __int* types also for msvcrt.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
include/msvcrt/corecrt.h | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-)
diff --git a/include/msvcrt/corecrt.h b/include/msvcrt/corecrt.h index 8f407bdb20c..79d0e3998d4 100644 --- a/include/msvcrt/corecrt.h +++ b/include/msvcrt/corecrt.h @@ -51,12 +51,23 @@
#include <sal.h>
-#if !defined(_MSC_VER) && !defined(__int64) -# if defined(_WIN64) && !defined(__MINGW64__) -# define __int64 long -# else -# define __int64 long long -# endif +#ifndef _MSC_VER +# ifndef __int8 +# define __int8 char +# endif +# ifndef __int16 +# define __int16 short +# endif +# ifndef __int32 +# define __int32 int +# endif +# ifndef __int64 +# if defined(_WIN64) && !defined(__MINGW64__) +# define __int64 long +# else +# define __int64 long long +# endif +# endif #endif
#ifndef NULL