Move strcasecmp(), strcasencmp() and strcasestr() prototypes to os.h

And make sure os.h is included in files that use it.
This commit is contained in:
Matthieu Herrb
2008-08-10 23:07:46 +02:00
committed by Matthieu Herrb
parent 02efa78ce2
commit 2e2ce817ce
5 changed files with 20 additions and 16 deletions

View File

@@ -450,6 +450,22 @@ extern void AbortDDX(void);
extern void ddxGiveUp(void);
extern int TimeSinceLastInputEvent(void);
/* strcasecmp.c */
#if NEED_STRCASECMP
#define strcasecmp xstrcasecmp
extern int xstrcasecmp(const char *s1, const char *s2);
#endif
#if NEED_STRNCASECMP
#define strncasecmp xstrncasecmp
extern int xstrncasecmp(const char *s1, const char *s2, size_t n);
#endif
#if NEED_STRCASESTR
#define strcasestr xstrcasestr
extern char *xstrcasestr(const char *s, const char *find);
#endif
/* Logging. */
typedef enum _LogParameter {
XLOG_FLUSH,