Don't include netplay.h header unless we have HAVE_NETWORKING

defined
This commit is contained in:
twinaphex 2021-11-05 19:50:02 +01:00
parent 0a209c4564
commit 1f4123ba54
4 changed files with 6 additions and 3 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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)

View File

@ -23,11 +23,8 @@
#ifdef HAVE_NETWORKING
#include <net/net_natt.h>
#endif
#include "../network/netplay/netplay.h"
#ifdef HAVE_NETWORKING
struct nat_traversal_state_data
{
struct natt_status *nat_traversal_state;