summaryrefslogtreecommitdiffstats
path: root/gl/streq.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 15:27:12 (GMT)
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 15:27:12 (GMT)
commit5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (patch)
tree2b2e1c71dffae827c8e45cd4cccc375093d03486 /gl/streq.h
parent6d1d1dac32841d5ca6ee51bb09b30a6c604b17e2 (diff)
downloadmonitoring-plugins-5be04ec2ceb1df77afbca4fcbf9e92a712612d6f.tar.gz
Sync with the latest Gnulib code (d4ec02b3cc)refs/pull/2037/head
Diffstat (limited to 'gl/streq.h')
-rw-r--r--gl/streq.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/gl/streq.h b/gl/streq.h
index 712948e..8593de6 100644
--- a/gl/streq.h
+++ b/gl/streq.h
@@ -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
25extern "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 */