summaryrefslogtreecommitdiff
path: root/LibC/stdint.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-11-07 10:23:16 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-11-07 10:23:16 +0100
commitd7a41579e5afe2554c4059c9cc8563cc3f750cba (patch)
treead4ceb566f630f5288adee5fbd676238c328a8c1 /LibC/stdint.h
parenta7f1d892a956041a74f93ec70afb477a1d161d1d (diff)
downloadserenity-d7a41579e5afe2554c4059c9cc8563cc3f750cba.zip
Miscellaneous compat work while seeing if GNU coreutils would build.
Diffstat (limited to 'LibC/stdint.h')
-rw-r--r--LibC/stdint.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/LibC/stdint.h b/LibC/stdint.h
index 7deb47e5da..551bef265c 100644
--- a/LibC/stdint.h
+++ b/LibC/stdint.h
@@ -12,5 +12,15 @@ typedef signed int int32_t;
typedef signed short int16_t;
typedef signed char int8_t;
+#define INT8_MIN (-128)
+#define INT16_MIN (-32767-1)
+#define INT32_MIN (-2147483647-1)
+#define INT8_MAX (127)
+#define INT16_MAX (32767)
+#define INT32_MAX (2147483647)
+#define UINT8_MAX (255)
+#define UINT16_MAX (65535)
+#define UINT32_MAX (4294967295U)
+
__END_DECLS