| 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 |
|
| 40 |
#if !_GL_CONFIG_H_INCLUDED |
| 41 |
#error "Please include config.h first." |
| 42 |
#endif |
| 43 |
|
| 44 |
#if ! @HAVE_DECL_STRNCASECMP@ |
| 45 |
|
| 46 |
# include <stddef.h> |
| 47 |
#endif |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
#ifdef __cplusplus |
| 57 |
extern "C" { |
| 58 |
#endif |
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
#if @GNULIB_FFS@ |
| 63 |
# if !@HAVE_FFS@ |
| 64 |
_GL_FUNCDECL_SYS (ffs, int, (int i)); |
| 65 |
# endif |
| 66 |
_GL_CXXALIAS_SYS (ffs, int, (int i)); |
| 67 |
_GL_CXXALIASWARN (ffs); |
| 68 |
#elif defined GNULIB_POSIXCHECK |
| 69 |
# undef ffs |
| 70 |
# if HAVE_RAW_DECL_FFS |
| 71 |
_GL_WARN_ON_USE (ffs, "ffs is not portable - use the ffs module"); |
| 72 |
# endif |
| 73 |
#endif |
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
#if ! @HAVE_STRCASECMP@ |
| 80 |
extern int strcasecmp (char const *s1, char const *s2) |
| 81 |
_GL_ARG_NONNULL ((1, 2)); |
| 82 |
#endif |
| 83 |
#if defined GNULIB_POSIXCHECK |
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
# undef strcasecmp |
| 88 |
# if HAVE_RAW_DECL_STRCASECMP |
| 89 |
_GL_WARN_ON_USE (strcasecmp, "strcasecmp cannot work correctly on character " |
| 90 |
"strings in multibyte locales - " |
| 91 |
"use mbscasecmp if you care about " |
| 92 |
"internationalization, or use c_strcasecmp , " |
| 93 |
"gnulib module c-strcase) if you want a locale " |
| 94 |
"independent function"); |
| 95 |
# endif |
| 96 |
#endif |
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
#if ! @HAVE_DECL_STRNCASECMP@ |
| 103 |
extern int strncasecmp (char const *s1, char const *s2, size_t n) |
| 104 |
_GL_ARG_NONNULL ((1, 2)); |
| 105 |
#endif |
| 106 |
#if defined GNULIB_POSIXCHECK |
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
# undef strncasecmp |
| 111 |
# if HAVE_RAW_DECL_STRNCASECMP |
| 112 |
_GL_WARN_ON_USE (strncasecmp, "strncasecmp cannot work correctly on character " |
| 113 |
"strings in multibyte locales - " |
| 114 |
"use mbsncasecmp or mbspcasecmp if you care about " |
| 115 |
"internationalization, or use c_strncasecmp , " |
| 116 |
"gnulib module c-strcase) if you want a locale " |
| 117 |
"independent function"); |
| 118 |
# endif |
| 119 |
#endif |
| 120 |
|
| 121 |
|
| 122 |
#ifdef __cplusplus |
| 123 |
} |
| 124 |
#endif |
| 125 |
|
| 126 |
#endif |
| 127 |
#endif |