(Win32) Buildfixes

This commit is contained in:
twinaphex 2015-11-19 08:44:02 +01:00
parent f2f0e7efb2
commit ec9ae5f7ac
3 changed files with 20 additions and 2 deletions

View File

@ -172,7 +172,11 @@ static const char *win32_video_get_ident(void)
return video_driver_get_ident();
}
static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
#ifndef _MSC_VER
extern "C" {
#endif
LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
WPARAM wparam, LPARAM lparam)
{
settings_t *settings = config_get_ptr();
@ -247,6 +251,10 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
return DefWindowProc(hwnd, message, wparam, lparam);
}
#ifndef _MSC_VER
}
#endif
bool win32_window_create(void *data, unsigned style,
RECT *mon_rect, unsigned width,
unsigned height, bool fullscreen)

View File

@ -62,7 +62,15 @@ bool win32_monitor_set_fullscreen(unsigned width,
unsigned height, unsigned refresh, char *dev_name);
#ifndef _XBOX
extern "C" bool win32_window_init(WNDCLASSEX *wndclass, bool fullscreen, const char *class_name);
#ifdef __cplusplus
extern "C" {
#endif
bool win32_window_init(WNDCLASSEX *wndclass, bool fullscreen, const char *class_name);
#ifdef __cplusplus
}
#endif
#endif
bool win32_window_create(void *data, unsigned style,

View File

@ -111,6 +111,8 @@ typedef struct
int parameters_start_y;
} shader_dlg_t;
extern LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
static shader_dlg_t g_shader_dlg = {0};
static INLINE void shader_dlg_refresh_trackbar_label(int index)