From fb1120c21294c6c8d53df5585bcd9e668f812e04 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 16 Jan 2014 15:00:43 +0000 Subject: [PATCH] fix windows build error --- windows/download.h | 2 +- windows/gui.c | 2 +- windows/main.c | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/windows/download.h b/windows/download.h index a53fab89f..974f1ecd2 100644 --- a/windows/download.h +++ b/windows/download.h @@ -23,7 +23,7 @@ #include #include "desktop/gui.h" -struct gui_download_table *win32_download_table; +extern struct gui_download_table *win32_download_table; typedef enum { DOWNLOAD_NONE, diff --git a/windows/gui.c b/windows/gui.c index 40124671d..f476c5ae9 100644 --- a/windows/gui.c +++ b/windows/gui.c @@ -1875,7 +1875,7 @@ static struct gui_clipboard_table clipboard_table = { struct gui_clipboard_table *win32_clipboard_table = &clipboard_table; -static struct gui_table browser_table = { +static struct gui_browser_table browser_table = { .poll = gui_poll, .filename_from_path = filename_from_path, .path_add_part = path_add_part, diff --git a/windows/main.c b/windows/main.c index 638db6c5c..ac75ab568 100644 --- a/windows/main.c +++ b/windows/main.c @@ -36,6 +36,7 @@ #include "windows/findfile.h" #include "windows/drawable.h" #include "windows/gui.h" +#include "windows/download.h" static char **respaths; /** resource search path vector. */ @@ -110,7 +111,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hLastInstance, LPSTR lpcli, int ncmd) .clipboard = win32_clipboard_table, .download = win32_download_table, }; - win32_gui_table->browser->get_resource_url = get_resource_url; + win32_gui_table->browser->get_resource_url = gui_get_resource_url; if (SLEN(lpcli) > 0) { argvw = CommandLineToArgvW(GetCommandLineW(), &argc);