From bd5d2162efae9913f2666c80bdf944a65ea95590 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Sep 2015 04:44:53 +0200 Subject: fix more errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/bits/types.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/bits/types.h') diff --git a/include/bits/types.h b/include/bits/types.h index 7a2244e..41967f2 100644 --- a/include/bits/types.h +++ b/include/bits/types.h @@ -75,6 +75,8 @@ typedef unsigned long int uptrdiff_t; # define __DEFINED_wchar_t typedef long int wchar_t __warning("'wchar_t' is not guaranteed to be defined as expected, use 'int32_t'."); +# endif +# ifndef __WCHAR_MAX # define __WCHAR_MAX INTPTR_MAX # endif @@ -233,6 +235,8 @@ typedef unsigned __INT_FAST64 uint_fast64_t; #if defined(__NEED_intmax_t) && !defined(__DEFINED_intmax_t) # define __DEFINED_intmax_t typedef signed __INT64 intmax_t; +#endif +#ifndef __INTMAX_MAX # define __INTMAX_MAX INT64_MAX #endif @@ -243,6 +247,8 @@ typedef signed __INT64 intmax_t; #if defined(__NEED_uintmax_t) && !defined(__DEFINED_uintmax_t) # define __DEFINED_uintmax_t typedef unsigned __INT64 uintmax_t; +#endif +#ifndef __UINTMAX_MAX # define __UINTMAX_MAX UINT64_MAX #endif @@ -256,6 +262,8 @@ typedef unsigned __INT64 uintmax_t; #if defined(__NEED_sig_atomic_t) && !defined(__DEFINED_sig_atomic_t) # define __DEFINED_sig_atomic_t typedef int sig_atomic_t; +#endif +#ifndef __SIG_ATOMIC_BIT # define __SIG_ATOMIC_BIT __INT_BIT #endif -- cgit v1.2.3-70-g09d2