Skip to content

Commit

Permalink
libretro: windows build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flyinghead committed Jan 2, 2025
1 parent 45f4378 commit a0e8e9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions core/windows/fault_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit a0e8e9a

Please sign in to comment.