summaryrefslogtreecommitdiff
path: root/lib/unicase/special-casing.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/unicase/special-casing.in.h')
-rw-r--r--lib/unicase/special-casing.in.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/unicase/special-casing.in.h b/lib/unicase/special-casing.in.h
index db8b8438..6ea5f800 100644
--- a/lib/unicase/special-casing.in.h
+++ b/lib/unicase/special-casing.in.h
@@ -1,5 +1,5 @@
/* Special casing table.
- Copyright (C) 2009-2024 Free Software Foundation, Inc.
+ Copyright (C) 2009-2025 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2009.
This file is free software.
@@ -23,6 +23,11 @@
License and of the GNU General Public License along with this
program. If not, see <https://www.gnu.org/licenses/>. */
+/* This file uses _GL_ATTRIBUTE_NONSTRING. */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
#include <stddef.h>
#ifdef __cplusplus
@@ -46,7 +51,7 @@ struct special_casing_rule
{
/* The first two bytes are the code, in big-endian order. The third byte
only distinguishes different rules pertaining to the same code. */
- /*unsigned*/ char code[3];
+ /*unsigned*/ char code[3] _GL_ATTRIBUTE_NONSTRING;
/* True when this rule is not the last one for the given code. */
/*bool*/ unsigned int has_next : 1;