summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/limits.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/include/limits.h b/include/limits.h
index 93cac49e55..dd601d5793 100644
--- a/include/limits.h
+++ b/include/limits.h
@@ -164,20 +164,11 @@
# ifndef UINT_WIDTH
# define UINT_WIDTH 32
# endif
-# if LONG_MAX == 0x7fffffffL
-# ifndef LONG_WIDTH
-# define LONG_WIDTH 32
-# endif
-# ifndef ULONG_WIDTH
-# define ULONG_WIDTH 32
-# endif
-# else
-# ifndef LONG_WIDTH
-# define LONG_WIDTH 64
-# endif
-# ifndef ULONG_WIDTH
-# define ULONG_WIDTH 64
-# endif
+# ifndef LONG_WIDTH
+# define LONG_WIDTH __WORDSIZE
+# endif
+# ifndef ULONG_WIDTH
+# define ULONG_WIDTH __WORDSIZE
# endif
# ifndef LLONG_WIDTH
# define LLONG_WIDTH 64