summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-10-16 09:58:24 -0600
committerKarl Williamson <public@khwilliamson.com>2012-10-16 21:48:37 -0600
commit57f0e7e230d864f5b78d28bb89545ef671c101a0 (patch)
treea4a8f2b5483898e05e95bc19283f30200af4ef43 /utf8.h
parent40b1ba4ffc62ae8198d69e8e3b33cf8201c6a18f (diff)
downloadperl-57f0e7e230d864f5b78d28bb89545ef671c101a0.tar.gz
utf8.h: Add guard against recursive #include
A future commit will #include this from another header
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/utf8.h b/utf8.h
index 5330e2180f..7472de12ab 100644
--- a/utf8.h
+++ b/utf8.h
@@ -8,6 +8,9 @@
*
*/
+#ifndef H_UTF8 /* Guard against recursive inclusion */
+#define H_UTF8 1
+
/* Use UTF-8 as the default script encoding?
* Turning this on will break scripts having non-UTF-8 binary
* data (such as Latin-1) in string literals. */
@@ -514,6 +517,8 @@ Perl's extended UTF-8 means we can have start bytes up to FF.
# define IS_UTF8_CHAR_FAST(n) ((n) <= 4)
#endif
+#endif /* H_UTF8 */
+
/*
* Local variables:
* c-indentation-style: bsd