diff options
Diffstat (limited to 'gl/streq.h')
-rw-r--r-- | gl/streq.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* Optimized string comparison. | 1 | /* Optimized string comparison. |
2 | Copyright (C) 2001-2002, 2007, 2009-2023 Free Software Foundation, Inc. | 2 | Copyright (C) 2001-2002, 2007, 2009-2024 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This file is free software: you can redistribute it and/or modify | 4 | This file is free software: you can redistribute it and/or modify |
5 | it under the terms of the GNU Lesser General Public License as | 5 | it under the terms of the GNU Lesser General Public License as |
@@ -21,6 +21,11 @@ | |||
21 | 21 | ||
22 | #include <string.h> | 22 | #include <string.h> |
23 | 23 | ||
24 | #ifdef __cplusplus | ||
25 | extern "C" { | ||
26 | #endif | ||
27 | |||
28 | |||
24 | /* STREQ_OPT allows to optimize string comparison with a small literal string. | 29 | /* STREQ_OPT allows to optimize string comparison with a small literal string. |
25 | STREQ_OPT (s, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0) | 30 | STREQ_OPT (s, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0) |
26 | is semantically equivalent to | 31 | is semantically equivalent to |
@@ -173,4 +178,9 @@ streq0 (const char *s1, const char *s2, char s20, char s21, char s22, char s23, | |||
173 | 178 | ||
174 | #endif | 179 | #endif |
175 | 180 | ||
181 | |||
182 | #ifdef __cplusplus | ||
183 | } | ||
184 | #endif | ||
185 | |||
176 | #endif /* _GL_STREQ_H */ | 186 | #endif /* _GL_STREQ_H */ |