summaryrefslogtreecommitdiff
path: root/config_h.SH
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2009-11-06 07:56:01 +0100
committerH.Merijn Brand <h.m.brand@xs4all.nl>2009-11-06 07:56:01 +0100
commitc193ef60f6a5fd42aabc316c80c3fc0f431e71ad (patch)
tree3aa273295ef2285c47ee5252998c67f6fc1e686a /config_h.SH
parentcb39f75f02caa9f23c14dfcac8a46fb1bd154b4f (diff)
downloadperl-c193ef60f6a5fd42aabc316c80c3fc0f431e71ad.tar.gz
Detection (and warning) of char size in bits
Diffstat (limited to 'config_h.SH')
-rwxr-xr-xconfig_h.SH6
1 files changed, 6 insertions, 0 deletions
diff --git a/config_h.SH b/config_h.SH
index ccb7f10ea0..ff4c86092a 100755
--- a/config_h.SH
+++ b/config_h.SH
@@ -2943,6 +2943,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
#define BYTEORDER 0x$byteorder /* large digits for MSB */
#endif /* NeXT */
+/* CHARBITS:
+ * This symbol contains the size of a char, so that the C preprocessor
+ * can make decisions based on it.
+ */
+#define CHARBITS $charbits /**/
+
/* CASTI32:
* This symbol is defined if the C compiler can cast negative
* or large floating point numbers to 32-bit ints.