aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-04-20 00:18:39 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-04-20 00:18:39 +0000
commit9d3b814d537587d25f07209b0d815c8304b9c003 (patch)
tree8c65a1659167669d71d45079c2572ac6b6ac1c9b
parent72cd9a9439ceeb662a6a6c3665120b4aadf1b51b (diff)
Add in missing #defines for _OpenBSD_ systems.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27850 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/DataTypes.h.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/llvm/Support/DataTypes.h.in b/include/llvm/Support/DataTypes.h.in
index f16a2cd9a2..26a0873151 100644
--- a/include/llvm/Support/DataTypes.h.in
+++ b/include/llvm/Support/DataTypes.h.in
@@ -63,6 +63,18 @@ typedef u_int64_t uint64_t;
#endif
#endif
+#ifdef _OpenBSD_
+#define INT8_MAX 127
+#define INT8_MIN -128
+#define UINT8_MAX 255
+#define INT16_MAX 32767
+#define INT16_MIN -32768
+#define UINT16_MAX 65535
+#define INT32_MAX 2147483647
+#define INT32_MIN -2147483648
+#define UINT32_MAX 4294967295U
+#endif
+
#else /* _MSC_VER */
// Visual C++ doesn't provide standard integer headers, but it does provide
// built-in data types.