Apply patch for FreeBSD from Flavio Slivestrow.

This commit is contained in:
johns 2002-04-09 22:35:37 +00:00
parent 6228f20dc1
commit 83a8b7f8e1
2 changed files with 4 additions and 0 deletions
src
include
stratagus

View file

@ -510,7 +510,9 @@ extern char* strdcat(const char* l, const char* r);
/// strdup + strcat + strcat
extern char* strdcat3(const char* l, const char *m, const char* r);
/// case insensitive strstr
#ifndef __FreeBSD__
extern char* strcasestr(char* str, const char* substr);
#endif
/*============================================================================
== Misc

View file

@ -327,6 +327,7 @@ global char* strdcat3(const char* l, const char* m, const char* r)
**
** @return Pointer to first occurence of b or NULL if not found.
*/
#ifndef __FreeBSD__
global char* strcasestr(char* a, const char* b)
{
int x=0;
@ -347,6 +348,7 @@ global char* strcasestr(char* a, const char* b)
return NULL;
}
#endif
/*============================================================================
== MAIN