Skip to content

Commit 51bf56b

Browse files
JoeMattclaude
andcommitted
fix(Dolphin): guard netplay includes against missing SFML dependency
NetPlayClient.h requires SFML/Network/Packet.hpp. When the dolphin-ios submodule is present but SFML headers are not in the search path the build fails. Add __has_include(<SFML/Network/Packet.hpp>) to the guard so the C++ netplay implementation is only compiled when all dependencies exist. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent effcd2f commit 51bf56b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Cores/Dolphin/PVDolphinCore/Core/PVDolphinCore+Netplay.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// NetPlay headers depending on the Dolphin revision.
3131
// ---------------------------------------------------------------------------
3232

33-
#if __has_include("Core/NetPlayClient.h")
33+
#if __has_include("Core/NetPlayClient.h") && __has_include(<SFML/Network/Packet.hpp>)
3434
#define HAVE_DOLPHIN_NETPLAY 1
3535
#include "Core/NetPlayClient.h"
3636
#include "Core/NetPlayServer.h"

0 commit comments

Comments
 (0)