1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 #ifndef _@GUARD_PREFIX@_STRINGS_H
19
20 #if __GNUC__ >= 3
21 @PRAGMA_SYSTEM_HEADER@
22 #endif
23 @PRAGMA_COLUMNS@
24
25
26
27 #if defined __minix && !defined __GLIBC__
28 # include <sys/types.h>
29 #endif
30
31
32 #if @HAVE_STRINGS_H@
33 # @INCLUDE_NEXT@ @NEXT_STRINGS_H@
34 #endif
35
36 #ifndef _@GUARD_PREFIX@_STRINGS_H
37 #define _@GUARD_PREFIX@_STRINGS_H
38
39 #if ! @HAVE_DECL_STRNCASECMP@
40
41 # include <stddef.h>
42 #endif
43
44
45
46
47
48
49
50
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54
55
56
57 #if @GNULIB_FFS@
58 # if !@HAVE_FFS@
59 _GL_FUNCDECL_SYS (ffs, int, (int i));
60 # endif
61 _GL_CXXALIAS_SYS (ffs, int, (int i));
62 _GL_CXXALIASWARN (ffs);
63 #elif defined GNULIB_POSIXCHECK
64 # undef ffs
65 # if HAVE_RAW_DECL_FFS
66 _GL_WARN_ON_USE (ffs, "ffs is not portable - use the ffs module");
67 # endif
68 #endif
69
70
71
72
73
74 #if ! @HAVE_STRCASECMP@
75 extern int strcasecmp (char const *s1, char const *s2)
76 _GL_ARG_NONNULL ((1, 2));
77 #endif
78 #if defined GNULIB_POSIXCHECK
79
80
81
82 # undef strcasecmp
83 # if HAVE_RAW_DECL_STRCASECMP
84 _GL_WARN_ON_USE (strcasecmp, "strcasecmp cannot work correctly on character "
85 "strings in multibyte locales - "
86 "use mbscasecmp if you care about "
87 "internationalization, or use c_strcasecmp , "
88 "gnulib module c-strcase) if you want a locale "
89 "independent function");
90 # endif
91 #endif
92
93
94
95
96
97 #if ! @HAVE_DECL_STRNCASECMP@
98 extern int strncasecmp (char const *s1, char const *s2, size_t n)
99 _GL_ARG_NONNULL ((1, 2));
100 #endif
101 #if defined GNULIB_POSIXCHECK
102
103
104
105 # undef strncasecmp
106 # if HAVE_RAW_DECL_STRNCASECMP
107 _GL_WARN_ON_USE (strncasecmp, "strncasecmp cannot work correctly on character "
108 "strings in multibyte locales - "
109 "use mbsncasecmp or mbspcasecmp if you care about "
110 "internationalization, or use c_strncasecmp , "
111 "gnulib module c-strcase) if you want a locale "
112 "independent function");
113 # endif
114 #endif
115
116
117 #ifdef __cplusplus
118 }
119 #endif
120
121 #endif
122 #endif