summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/bits
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2021-06-02 15:42:38 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-16 16:42:40 +0200
commit230df61aef8cf727d955de76bc14eeb883691276 (patch)
tree42a72982aaec7bb9ded2ae731e798c1b68a895cc /Userland/Libraries/LibC/bits
parent328818af974145adde54b37fa107300e2bd6ffcc (diff)
downloadserenity-230df61aef8cf727d955de76bc14eeb883691276.zip
LibC: Define ptrdiff_t limits
Diffstat (limited to 'Userland/Libraries/LibC/bits')
-rw-r--r--Userland/Libraries/LibC/bits/stdint.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/bits/stdint.h b/Userland/Libraries/LibC/bits/stdint.h
index 1ec92c2aa8..f242978580 100644
--- a/Userland/Libraries/LibC/bits/stdint.h
+++ b/Userland/Libraries/LibC/bits/stdint.h
@@ -123,4 +123,7 @@ typedef __INTMAX_TYPE__ intmax_t;
#define SIZE_MAX ((size_t)-1)
+#define PTRDIFF_MAX __PTRDIFF_MAX__
+#define PTRDIFF_MIN (-__PTRDIFF_MAX__ - 1)
+
__END_DECLS