winrt: use windowsio in non-libc mode

CMake's SDL_build_config.h force disables HAVE_STDIO_H when buiding
winrt in non-libc mode.

Becase CreateFileEx is not available in UWP mode, use CreateFile2
instead.
This commit is contained in:
Anonymous Maarten
2023-08-10 17:37:13 +02:00
committed by Anonymous Maarten
parent ea8757a748
commit b7889a7389
2 changed files with 25 additions and 11 deletions

View File

@@ -107,7 +107,7 @@ typedef struct SDL_RWops
void *asset;
} androidio;
#elif defined(__WIN32__) || defined(__GDK__)
#elif defined(__WIN32__) || defined(__GDK__) || defined(__WINRT__)
struct
{
SDL_bool append;