From 06e97ab6e2508a9805ad87802c2c45b10e9fa892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Wed, 21 Mar 2018 15:41:27 +0100 Subject: [PATCH] Fix linkage on macOS --- src/openrct2/util/Util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/util/Util.h b/src/openrct2/util/Util.h index 105b9f7c37..a1fa71dfd2 100644 --- a/src/openrct2/util/Util.h +++ b/src/openrct2/util/Util.h @@ -51,7 +51,7 @@ char *safe_strcpy(char * destination, const char * source, size_t num); char *safe_strcat(char *destination, const char *source, size_t size); char *safe_strcat_path(char *destination, const char *source, size_t size); char *safe_strtrimleft(char *destination, const char *source, size_t size); -#if !defined(_GNU_SOURCE) +#if !(defined(_GNU_SOURCE) || (defined(__DARWIN_C_LEVEL) && __DARWIN_C_LEVEL >= 200809L)) char * strcasestr(const char * haystack, const char * needle); #endif