fix windows build error
This commit is contained in:
parent
ba4788108b
commit
fb1120c212
|
@ -23,7 +23,7 @@
|
|||
#include <windows.h>
|
||||
#include "desktop/gui.h"
|
||||
|
||||
struct gui_download_table *win32_download_table;
|
||||
extern struct gui_download_table *win32_download_table;
|
||||
|
||||
typedef enum {
|
||||
DOWNLOAD_NONE,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue