From: curt Date: Sun, 10 Feb 2002 03:28:57 +0000 (+0000) Subject: FreeBSD fix: strnstr() is already defined. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1a8bc06cc617233114dc5f2329a9fa29eb6d2ead;p=simgear.git FreeBSD fix: strnstr() is already defined. --- diff --git a/simgear/metar/Local.h b/simgear/metar/Local.h index d0e26fae..f425777e 100644 --- a/simgear/metar/Local.h +++ b/simgear/metar/Local.h @@ -1106,8 +1106,10 @@ char *strlwr(char *); char *rptstrip(char *); char *rptfmt(char *); char *rptfmti(char *, unsigned short int); - + +#ifndef __FreeBSD__ // strnstr is already defined on FreeBSD char *strnstr(char *, char *, size_t); +#endif int stregion(int); int ccregion(char *);