Add some __WINRT__ ifdefs

This commit is contained in:
twinaphex 2018-08-17 14:50:56 +02:00
parent e2ff7478ca
commit 7250181319
4 changed files with 7 additions and 2 deletions

View File

@ -356,6 +356,8 @@ static const bool _avfoundation_supp = false;
#else
#define GLOBAL_CONFIG_DIR "/etc"
#endif
#else
#define GLOBAL_CONFIG_DIR ""
#endif
#endif

View File

@ -63,12 +63,14 @@ void create_gdi_context(HWND hwnd, bool *quit);
bool gdi_has_menu_frame(void);
#if !defined(__WINRT__)
bool win32_window_init(WNDCLASSEX *wndclass, bool fullscreen, const char *class_name);
void win32_set_style(MONITORINFOEX *current_mon, HMONITOR *hm_to_use,
unsigned *width, unsigned *height, bool fullscreen, bool windowed_full,
RECT *rect, RECT *mon_rect, DWORD *style);
#endif
#endif
void win32_monitor_from_window(void);

View File

@ -22,7 +22,7 @@
#include <file/nbio.h>
#if defined(_WIN32) && !defined(_XBOX)
#if defined(_WIN32) && !defined(_XBOX) && !defined(__WINRT__)
#include <stdio.h>
#include <stdlib.h>

View File

@ -57,6 +57,7 @@ typedef struct ui_companion_win32
void *empty;
} ui_companion_win32_t;
#ifndef __WINRT__
bool win32_window_init(WNDCLASSEX *wndclass,
bool fullscreen, const char *class_name)
{
@ -79,7 +80,7 @@ bool win32_window_init(WNDCLASSEX *wndclass,
return true;
}
#endif
static bool win32_browser(
HWND owner,