From 9205424ab4687acfac85831c47d2fda6349b5234 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 19 Nov 2015 08:20:16 +0100 Subject: [PATCH] (MSVC) Fix one linking error --- gfx/common/win32_common.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gfx/common/win32_common.cpp b/gfx/common/win32_common.cpp index ccdf1263e6..d838e2d913 100644 --- a/gfx/common/win32_common.cpp +++ b/gfx/common/win32_common.cpp @@ -30,7 +30,16 @@ #include "../video_thread_wrapper.h" #include "../drivers_wm/win32_shader_dlg.h" -extern "C" LRESULT win32_menu_loop(HWND owner, WPARAM wparam); +#ifndef _MSC_VER +extern "C" { +#endif + +LRESULT win32_menu_loop(HWND owner, WPARAM wparam); + +#ifndef _MSC_VER +} +#endif + extern "C" bool dinput_handle_message(void *dinput, UINT message, WPARAM wParam, LPARAM lParam); extern "C" bool win32_browser( HWND owner,