1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 05:53:02 +01:00

Convert shared.c to C++

This commit is contained in:
Ted John
2018-01-18 12:51:37 +00:00
parent 3df8ae6960
commit 34d41aeadd

View File

@@ -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
}
}
}