uwp build fix

This commit is contained in:
Flyinghead 2022-07-21 14:51:20 +02:00
parent ad8b41adb0
commit 19ccc6a38d
2 changed files with 11 additions and 0 deletions

View File

@ -144,6 +144,7 @@ enum HollyInterruptID
#include <stdio.h>
namespace nowide {
FILE *fopen(char const *file_name, char const *mode);
int remove(const char *pathname);
}
#endif

View File

@ -821,6 +821,16 @@ FILE *fopen(char const *file_name, char const *mode)
return _fdopen(fd, mode);
}
int remove(char const *name)
{
wstackstring wname;
if(!wname.convert(name)) {
errno = EINVAL;
return -1;
}
return _wremove(wname.c_str());
}
}
extern "C" int SDL_main(int argc, char* argv[])