aboutsummaryrefslogtreecommitdiffstats
path: root/include/bits/types.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-09-02 04:44:53 +0200
committerMattias Andrée <maandree@operamail.com>2015-09-02 04:44:53 +0200
commitbd5d2162efae9913f2666c80bdf944a65ea95590 (patch)
tree7cfda8110528b22a8377bf9fdf526b9e203beda9 /include/bits/types.h
parentremove old debug line (diff)
downloadslibc-bd5d2162efae9913f2666c80bdf944a65ea95590.tar.gz
slibc-bd5d2162efae9913f2666c80bdf944a65ea95590.tar.bz2
slibc-bd5d2162efae9913f2666c80bdf944a65ea95590.tar.xz
fix more errors
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include/bits/types.h')
-rw-r--r--include/bits/types.h8
1 files changed, 8 insertions, 0 deletions
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