From 1f4123ba54b4324f5f927d286bd895c6480e6e09 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 5 Nov 2021 19:50:02 +0100 Subject: [PATCH] Don't include netplay.h header unless we have HAVE_NETWORKING defined --- menu/cbs/menu_cbs_left.c | 2 ++ menu/cbs/menu_cbs_right.c | 2 ++ tasks/task_netplay_lan_scan.c | 2 ++ tasks/task_netplay_nat_traversal.c | 3 --- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/menu/cbs/menu_cbs_left.c b/menu/cbs/menu_cbs_left.c index b3c6e545d5..08a92fdce1 100644 --- a/menu/cbs/menu_cbs_left.c +++ b/menu/cbs/menu_cbs_left.c @@ -41,7 +41,9 @@ #include "../../driver.h" #include "../../retroarch.h" #include "../../audio/audio_driver.h" +#ifdef HAVE_NETWORKING #include "../../network/netplay/netplay.h" +#endif #include "../../playlist.h" #include "../../manual_content_scan.h" #include "../misc/cpufreq/cpufreq.h" diff --git a/menu/cbs/menu_cbs_right.c b/menu/cbs/menu_cbs_right.c index b6ad0fa2ae..122108d636 100644 --- a/menu/cbs/menu_cbs_right.c +++ b/menu/cbs/menu_cbs_right.c @@ -42,7 +42,9 @@ #include "../../audio/audio_driver.h" #include "../../verbosity.h" #include "../../ui/ui_companion_driver.h" +#ifdef HAVE_NETWORKING #include "../../network/netplay/netplay.h" +#endif #include "../../playlist.h" #include "../../manual_content_scan.h" #include "../misc/cpufreq/cpufreq.h" diff --git a/tasks/task_netplay_lan_scan.c b/tasks/task_netplay_lan_scan.c index de9e0b732b..42e96b86c0 100644 --- a/tasks/task_netplay_lan_scan.c +++ b/tasks/task_netplay_lan_scan.c @@ -26,7 +26,9 @@ #endif #include "../verbosity.h" +#ifdef HAVE_NETWORKING #include "../network/netplay/netplay.h" +#endif #ifdef HAVE_NETPLAYDISCOVERY static void task_netplay_lan_scan_handler(retro_task_t *task) diff --git a/tasks/task_netplay_nat_traversal.c b/tasks/task_netplay_nat_traversal.c index 4068072df5..790702d46c 100644 --- a/tasks/task_netplay_nat_traversal.c +++ b/tasks/task_netplay_nat_traversal.c @@ -23,11 +23,8 @@ #ifdef HAVE_NETWORKING #include -#endif - #include "../network/netplay/netplay.h" -#ifdef HAVE_NETWORKING struct nat_traversal_state_data { struct natt_status *nat_traversal_state;