mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
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:
committed by
Matthieu Herrb
parent
02efa78ce2
commit
2e2ce817ce
16
include/os.h
16
include/os.h
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user