mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-22 09:15:02 +00:00
Expand ifdefs for HAVE_NETWORK_CMD
This commit is contained in:
parent
25e0ead417
commit
64fe591b64
10
command.c
10
command.c
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
|
||||||
#ifdef HAVE_NETWORK_CMD
|
#if defined(HAVE_NETWORK_CMD) && defined(HAVE_NETPLAY)
|
||||||
#include "netplay_compat.h"
|
#include "netplay_compat.h"
|
||||||
#include "netplay.h"
|
#include "netplay.h"
|
||||||
#endif
|
#endif
|
||||||
@ -44,7 +44,7 @@ struct rarch_cmd
|
|||||||
size_t stdin_buf_ptr;
|
size_t stdin_buf_ptr;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_NETWORK_CMD
|
#if defined(HAVE_NETWORK_CMD) && defined(HAVE_NETPLAY)
|
||||||
int net_fd;
|
int net_fd;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -155,7 +155,7 @@ error:
|
|||||||
|
|
||||||
void rarch_cmd_free(rarch_cmd_t *handle)
|
void rarch_cmd_free(rarch_cmd_t *handle)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_NETWORK_CMD
|
#if defined(HAVE_NETWORK_CMD) && defined(HAVE_NETPLAY)
|
||||||
if (handle->net_fd >= 0)
|
if (handle->net_fd >= 0)
|
||||||
close(handle->net_fd);
|
close(handle->net_fd);
|
||||||
#endif
|
#endif
|
||||||
@ -318,7 +318,7 @@ bool rarch_cmd_get(rarch_cmd_t *handle, unsigned id)
|
|||||||
return id < RARCH_BIND_LIST_END && handle->state[id];
|
return id < RARCH_BIND_LIST_END && handle->state[id];
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_NETWORK_CMD
|
#if defined(HAVE_NETWORK_CMD) && defined(HAVE_NETPLAY)
|
||||||
static void network_cmd_poll(rarch_cmd_t *handle)
|
static void network_cmd_poll(rarch_cmd_t *handle)
|
||||||
{
|
{
|
||||||
if (handle->net_fd < 0)
|
if (handle->net_fd < 0)
|
||||||
@ -490,7 +490,7 @@ void rarch_cmd_poll(rarch_cmd_t *handle)
|
|||||||
{
|
{
|
||||||
memset(handle->state, 0, sizeof(handle->state));
|
memset(handle->state, 0, sizeof(handle->state));
|
||||||
|
|
||||||
#ifdef HAVE_NETWORK_CMD
|
#if defined(HAVE_NETWORK_CMD) && defined(HAVE_NETPLAY)
|
||||||
network_cmd_poll(handle);
|
network_cmd_poll(handle);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user