diff options
author | rubidium <rubidium@openttd.org> | 2009-02-06 15:53:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-06 15:53:48 +0000 |
commit | e85628702940989a8e53245ada5d16711a180fdc (patch) | |
tree | f7ee9f37c53fbd50c1d59ee0764b26ab094ec044 /src/string.cpp | |
parent | d45d8d23d32d4f247f753e79926cac456a5db865 (diff) | |
download | openttd-e85628702940989a8e53245ada5d16711a180fdc.tar.xz |
(svn r15376) -Fix [FS#2608] (r15371): OSX/BSD also seems to define strcasecmp under some circumstances.
Diffstat (limited to 'src/string.cpp')
-rw-r--r-- | src/string.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/string.cpp b/src/string.cpp index 289031cfc..1ab68a274 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -362,7 +362,9 @@ char *strndup(const char *s, size_t len) memcpy(tmp, s, len); return tmp; } +#endif /* !_GNU_SOURCE */ +#ifdef DEFINE_STRCASESTR const char *strcasestr(const char *haystack, const char *needle) { size_t hay_len = strlen(haystack); @@ -376,4 +378,4 @@ const char *strcasestr(const char *haystack, const char *needle) return NULL; } -#endif /* !_GNU_SOURCE */ +#endif /* DEFINE_STRCASESTR */ |