libretro: windows build fix

This commit is contained in:
Flyinghead 2025-01-02 12:11:45 +01:00
parent 45f4378184
commit a0e8e9a9df
2 changed files with 10 additions and 0 deletions

View File

@ -851,6 +851,9 @@ if(LIBRETRO)
if(APPLE)
target_sources(${PROJECT_NAME} PRIVATE shell/libretro/oslib_apple.mm)
endif()
if(WIN32)
target_link_libraries(${PROJECT_NAME} PRIVATE mswsock)
endif()
endif()
target_sources(${PROJECT_NAME} PRIVATE

View File

@ -24,7 +24,14 @@
static PVOID vectoredHandler;
static LONG (WINAPI *prevExceptionHandler)(EXCEPTION_POINTERS *ep);
#ifndef LIBRETRO
const char *getThreadName();
#else
// TODO
static const char *getThreadName() {
return "";
}
#endif
static void readContext(const EXCEPTION_POINTERS *ep, host_context_t &context)
{