summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-05-31 19:23:51 +0200
committerRichard Braun <rbraun@sceen.net>2017-05-31 19:23:51 +0200
commit2f4a4c7b6f4e4836c7528f1d0ae2b35d06dd1a23 (patch)
tree1897d3b30822aeeb6ee238f65a1f34cc356a76dd /include
parent436fe6cb9711401fcc1f1d8fc29025f1aec5b774 (diff)
Move limits.h to the include directory
This turns limits.h into a standard header.
Diffstat (limited to 'include')
-rw-r--r--include/limits.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/limits.h b/include/limits.h
new file mode 100644
index 0000000..2d47e6b
--- /dev/null
+++ b/include/limits.h
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2010-2014 Richard Braun.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _LIMITS_H
+#define _LIMITS_H
+
+#define CHAR_BIT 8
+
+#ifdef __LP64__
+#define LONG_BIT 64
+#else /* __LP64__ */
+#define LONG_BIT 32
+#endif /* __LP64__ */
+
+#endif /* _LIMITS_H */