From 31a219a96192dd27f0915619555c0d562ec4f66d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Wed, 13 Jul 2016 20:34:53 +0200 Subject: [PATCH] Fix declaration of Windows' `StartOpenRCT` --- src/platform/platform.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/platform/platform.h b/src/platform/platform.h index 1d3c6a4e3e..53dc0aca65 100644 --- a/src/platform/platform.h +++ b/src/platform/platform.h @@ -196,6 +196,9 @@ datetime64 platform_get_datetime_now_utc(); HWND windows_get_window_handle(); void platform_setup_file_associations(); void platform_remove_file_associations(); + // This function cannot be marked as 'static', even though it may seem to be, + // as it requires external linkage, which 'static' prevents + __declspec(dllexport) int StartOpenRCT(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow); #endif // __WINDOWS__ #if defined(__LINUX__) || defined(__MACOSX__)