summaryrefslogtreecommitdiff
path: root/Libraries/LibC/limits.h
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2020-05-10 23:01:26 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-11 10:52:24 +0200
commit1f9dcdc41ca0402a79ebfc723e23555bef971c92 (patch)
tree8dd60459331d8ed78a60bdfe917329a82e842886 /Libraries/LibC/limits.h
parentbc5d5bf75d06c422094a3bd0aafd14be8a84c61a (diff)
downloadserenity-1f9dcdc41ca0402a79ebfc723e23555bef971c92.zip
LibC: Use more flexible digit parsing code, deduplicate
Diffstat (limited to 'Libraries/LibC/limits.h')
-rw-r--r--Libraries/LibC/limits.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Libraries/LibC/limits.h b/Libraries/LibC/limits.h
index 57632d2e62..251cbd043f 100644
--- a/Libraries/LibC/limits.h
+++ b/Libraries/LibC/limits.h
@@ -52,9 +52,13 @@
#define LONG_MAX 2147483647L
#define LONG_MIN (-LONG_MAX - 1L)
+#define ULONG_MAX 4294967295UL
+
#define LONG_LONG_MAX 9223372036854775807LL
#define LONG_LONG_MIN (-LONG_LONG_MAX - 1LL)
+#define ULONG_LONG_MAX 18446744073709551615ULL
+
#define CHAR_MIN SCHAR_MIN
#define CHAR_MAX SCHAR_MAX