summaryrefslogtreecommitdiff
path: root/src/config.in
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-10-31 02:48:28 +0000
committerRichard M. Stallman <rms@gnu.org>1995-10-31 02:48:28 +0000
commit19a0d27a6a75d4b4167afca734592d68126b4fa3 (patch)
tree71a0fe3b3edceda7fed938079aba07b18236287c /src/config.in
parentbc86915f966235c7d6cc0a9b4f7a85c108d9dc7d (diff)
downloademacs-19a0d27a6a75d4b4167afca734592d68126b4fa3.tar.gz
(BITS_PER_CHAR, BITS_PER_INT, BITS_PER_SHORT)
(BITS_PER_LONG): Define if not already defined.
Diffstat (limited to 'src/config.in')
-rw-r--r--src/config.in22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/config.in b/src/config.in
index c2dc3f8be5f..94e9a44b3b7 100644
--- a/src/config.in
+++ b/src/config.in
@@ -324,3 +324,25 @@ extern char *getenv ();
#endif
#endif /* EMACS_CONFIG_H */
+
+/* These default definitions are good for almost all machines.
+ The exceptions override them in m/*.h. */
+
+#ifndef BITS_PER_CHAR
+#define BITS_PER_CHAR 8
+#endif
+
+#ifndef BITS_PER_SHORT
+#define BITS_PER_SHORT 16
+#endif
+
+/* Note that lisp.h uses this in a preprocessor conditional, so it
+ would not work to use sizeof. That being so, we do all of them
+ without sizeof, for uniformity's sake. */
+#ifndef BITS_PER_INT
+#define BITS_PER_INT 32
+#endif
+
+#ifndef BITS_PER_LONG
+#define BITS_PER_LONG 32
+#endif