diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/Shared.cpp similarity index 98% rename from src/openrct2/platform/shared.c rename to src/openrct2/platform/Shared.cpp index 8b1aa76ae0..ac167812f5 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/Shared.cpp @@ -45,6 +45,9 @@ #endif #endif +extern "C" +{ + #if defined(__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101200) static mach_timebase_info_data_t _mach_base_info = { 0 }; #endif @@ -60,7 +63,7 @@ char * strndup(const char * src, size_t size) return NULL; } - dst = memcpy(dst, src, len); + dst = (char *)memcpy(dst, src, len); dst[len] = '\0'; return (char *)dst; } @@ -234,3 +237,5 @@ void core_init() #endif } } + +}