Bug #282 » 0001-Use-OS-agnostic-string-comparison-functions.patch
configure.ac | ||
---|---|---|
# include <signal.h>
|
||
#endif
|
||
])
|
||
AC_CHECK_DECLS([strcasecmp,strncasecmp],[],[],[#include <strings.h>])
|
||
AC_CHECK_DECLS([_stricmp,_strnicmp],[],[],[#include <string.h>])
|
||
if test "x$ac_cv_have_decl_strcasecmp" = xno -a \
|
||
"x$ac_cv_have_decl__stricmp" = xno; then
|
||
AC_MSG_ERROR([No strcasecmp implementation found])
|
||
fi
|
||
if test "x$ac_cv_have_decl_strncasecmp" = xno -a \
|
||
"x$ac_cv_have_decl__strnicmp" = xno; then
|
||
AC_MSG_ERROR([No strncasecmp implementation found])
|
||
fi
|
||
###-------------------------------------------------------------------------
|
||
... | ... | |
AC_SUBST(gwenhywfar_plugins_cfgmgr_libs)
|
||
AC_MSG_RESULT($plugins)
|
||
AH_BOTTOM([
|
||
#if HAVE_DECL_STRCASECMP || HAVE_DECL_STRNCASECMP
|
||
#include <strings.h>
|
||
#endif
|
||
#if !HAVE_DECL_STRCASECMP && HAVE_DECL__STRICMP
|
||
#define strcasecmp _stricmp
|
||
#endif
|
||
#if !HAVE_DECL_STRNCASECMP && HAVE_DECL__STRNICMP
|
||
#define strncasecmp _strnicmp
|
||
#endif
|
||
])
|
||
###-------------------------------------------------------------------------
|
src/base/debug.c | ||
---|---|---|
#include <stdarg.h>
|
||
#include <assert.h>
|
||
#include <stdio.h>
|
||
#ifdef HAVE_STRINGS_H
|
||
# include <strings.h>
|
||
#endif
|
||
#include <gwenhywfar/misc.h>
|
||
src/base/error.c | ||
---|---|---|
#include <stdio.h>
|
||
#include <assert.h>
|
||
#include <string.h>
|
||
#ifdef HAVE_STRINGS_H
|
||
# include <strings.h>
|
||
#endif
|
||
#include "gwenhywfar/debug.h"
|
||
#include "gwenhywfar/misc.h"
|
src/base/i18n.c | ||
---|---|---|
#include <string.h>
|
||
#include <errno.h>
|
||
#ifdef HAVE_STRINGS_H
|
||
# include <strings.h>
|
||
#endif
|
||
#ifdef HAVE_I18N
|
||
# include <libintl.h>
|
src/base/logger.c | ||
---|---|---|
# include <syslog.h>
|
||
#endif
|
||
#include <string.h>
|
||
#ifdef HAVE_STRINGS_H
|
||
# include <strings.h>
|
||
#endif
|
||
#ifdef HAVE_TIME_H
|
||
# include <time.h>
|
||
#endif
|
src/base/plugin.c | ||
---|---|---|
#endif
|
||
#include <errno.h>
|
||
#include <string.h>
|
||
#ifdef HAVE_STRINGS_H
|
||
# include <strings.h>
|
||
#endif
|
||
#include <ctype.h>
|
||
#ifdef OS_WIN32
|
src/base/plugindescr.c | ||
---|---|---|
#endif
|
||
#include <errno.h>
|
||
#include <string.h>
|
||
#ifdef HAVE_STRINGS_H
|
||
# include <strings.h>
|
||
#endif
|
||
src/base/stringlist.c | ||
---|---|---|
#include <assert.h>
|
||
#include <ctype.h>
|
||
#include <string.h>
|
||
#ifdef HAVE_STRINGS_H
|
||
# include <strings.h>
|
||
#endif
|
||
src/base/stringlist2.c | ||
---|---|---|
#include <stdlib.h>
|
||
#include <assert.h>
|
||
#include <string.h>
|
||
#ifdef HAVE_STRINGS_H
|
||
# include <strings.h>
|
||
#endif
|
||
GWEN_STRINGLIST2 *GWEN_StringList2_new(void)
|
src/gui/dialog.c | ||
---|---|---|
#include <assert.h>
|
||
#include <ctype.h>
|
||
#include <strings.h>
|
||
GWEN_INHERIT_FUNCTIONS(GWEN_DIALOG)
|
src/os/posix/fslock.c | ||
---|---|---|
#include <unistd.h>
|
||
#include <errno.h>
|
||
#include <string.h>
|
||
#include <strings.h>
|
||
#define GWEN_FSLOCK_TIMEOUT_ASK (7000.0) /* about 7 secs */
|
src/parser/url.c | ||
---|---|---|
#include <gwenhywfar/debug.h>
|
||
#include <assert.h>
|
||
#include <stdlib.h>
|
||
#include <strings.h>
|
||
#include <gwenhywfar/types.h>
|
||
#include <gwenhywfar/urlfns.h>
|
src/sio/ssl_cert_descr.c | ||
---|---|---|
#include <gwenhywfar/debug.h>
|
||
#include <assert.h>
|
||
#include <stdlib.h>
|
||
#include <strings.h>
|
||
#include <gwenhywfar/gwentime.h>
|
||
#include <gwenhywfar/ssl_cert_flags.h>
|
tools/typemaker/code_c.c | ||
---|---|---|
GWEN_SyncIo_WriteLine(sio, "#include <gwenhywfar/debug.h>");
|
||
GWEN_SyncIo_WriteLine(sio, "#include <assert.h>");
|
||
GWEN_SyncIo_WriteLine(sio, "#include <stdlib.h>");
|
||
GWEN_SyncIo_WriteLine(sio, "#include <strings.h>");
|
||
GWEN_SyncIo_WriteLine(sio, "");
|
||
/* write headers */
|