diff options
Diffstat (limited to 'winsup/mingw/include/stdint.h')
-rw-r--r-- | winsup/mingw/include/stdint.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/winsup/mingw/include/stdint.h b/winsup/mingw/include/stdint.h index c3a79c5bb..ec1566db2 100644 --- a/winsup/mingw/include/stdint.h +++ b/winsup/mingw/include/stdint.h @@ -19,6 +19,9 @@ #ifndef _STDINT_H #define _STDINT_H +#define __need_wint_t +#define __need_wchar_t +#include <stddef.h> /* 7.18.1.1 Exact-width integer types */ typedef signed char int8_t; @@ -138,11 +141,10 @@ typedef unsigned long long uintmax_t; #endif /* - * wint_t is unsigned int in __MINGW32__, - * but unsigned short in MS runtime + * wint_t is unsigned short for compatibility with MS runtime */ #define WINT_MIN 0 -#define WINT_MAX UINT32_MAX +#define WINT_MAX ((wint_t)-1) /* UINT16_MAX */ #endif /* !defined ( __cplusplus) || defined __STDC_LIMIT_MACROS */ @@ -181,4 +183,4 @@ typedef unsigned long long uintmax_t; #endif /* !defined ( __cplusplus) || defined __STDC_CONSTANT_MACROS */ -#endif
\ No newline at end of file +#endif |