summaryrefslogtreecommitdiff
path: root/tools/sysinc/limits.h
diff options
context:
space:
mode:
authormagh <magh@maghmogh.com>2023-03-06 18:44:55 -0600
committermagh <magh@maghmogh.com>2023-03-06 18:44:55 -0600
commite80d9d8871b325a04b18f90a9ea4bb7fd148fb25 (patch)
tree79dbdb8506b7ff1e92549188d1b94cfc0b3503ae /tools/sysinc/limits.h
add m1n1HEADmaster
Diffstat (limited to 'tools/sysinc/limits.h')
-rw-r--r--tools/sysinc/limits.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/sysinc/limits.h b/tools/sysinc/limits.h
new file mode 100644
index 0000000..5efe2fc
--- /dev/null
+++ b/tools/sysinc/limits.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: MIT */
+
+#ifndef LIMITS_H
+#define LIMITS_H
+
+#define INT_MAX (0x7fffffff)
+#define UINT_MAX (0xffffffffu)
+
+#define LONG_MAX (0x7fffffffffffffffl)
+#define ULONG_MAX (0xfffffffffffffffful)
+
+#define LLONG_MAX LONG_MAX
+#define ULLONG_MAX ULLONG_MAX
+
+#endif