mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-14 17:01:07 +00:00
Rename strcasestr to nongnu_strcasestr, macro strcasestr ifndef _GNU_SOURCE
Fix for GCC C++ compiler, which always defines _GNU_SOURCE.
This commit is contained in:
parent
91e915b963
commit
dc103330ac
2 changed files with 5 additions and 2 deletions
|
@ -100,7 +100,10 @@ typedef long ssize_t;
|
||||||
#define strnicmp(x,y,n) strncasecmp(x,y,n)
|
#define strnicmp(x,y,n) strncasecmp(x,y,n)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char *strcasestr(const char *in, const char *what);
|
char *nongnu_strcasestr(const char *in, const char *what);
|
||||||
|
#ifndef _GNU_SOURCE
|
||||||
|
#define strcasestr nongnu_strcasestr
|
||||||
|
#endif
|
||||||
#define stristr strcasestr
|
#define stristr strcasestr
|
||||||
|
|
||||||
int startswith (const char *base, const char *tag);
|
int startswith (const char *base, const char *tag);
|
||||||
|
|
|
@ -61,7 +61,7 @@ swapp (char ***ppap, char ***ppbp, char **cpap, char **cpbp)
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
strcasestr (const char *s, const char *q)
|
nongnu_strcasestr (const char *s, const char *q)
|
||||||
{
|
{
|
||||||
size_t qn;
|
size_t qn;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue