Fix iOS and macOS builds

This commit is contained in:
Jesse Talavera-Greenberg 2023-08-02 23:08:37 -04:00
parent 359d3267c5
commit 66c24c97a6
2 changed files with 4 additions and 2 deletions

View File

@ -53,6 +53,10 @@ if (UNIX)
target_compile_definitions(slirp PRIVATE UNIX)
endif()
if (APPLE)
target_link_libraries(slirp PRIVATE resolv)
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(slirp PRIVATE -fPIC)
target_link_options(slirp PRIVATE -fPIC)

View File

@ -418,10 +418,8 @@ namespace melonds::config {
melonds::Renderer ConfiguredRenderer() noexcept { return melonds::Renderer::Software; }
#endif
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
static melonds::ScreenFilter _screenFilter;
melonds::ScreenFilter ScreenFilter() noexcept { return _screenFilter; }
#endif
int ScaleFactor() noexcept { return RenderSettings().GL_ScaleFactor; }
}