From 37a5139f5ff12eac4842eefa3a363125f7d5e7f4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 26 Dec 2015 08:10:37 +0100 Subject: [PATCH] (netplay) Fix CXX_BUILD --- netplay/netplay.c | 2 ++ netplay/netplay_private.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/netplay/netplay.c b/netplay/netplay.c index b8bd17b7c1..c1264e6ae3 100644 --- a/netplay/netplay.c +++ b/netplay/netplay.c @@ -36,6 +36,8 @@ enum CMD_OPT_REQUIRE_SYNC = 0x10 }; +void *netplay_data; + /** * warn_hangup: * diff --git a/netplay/netplay_private.h b/netplay/netplay_private.h index feb9e86a6b..d7f83296e7 100644 --- a/netplay/netplay_private.h +++ b/netplay/netplay_private.h @@ -131,7 +131,7 @@ struct netplay struct netplay_callbacks* net_cbs; }; -void *netplay_data; +extern void *netplay_data; struct netplay_callbacks* netplay_get_cbs_net(void); struct netplay_callbacks* netplay_get_cbs_spectate(void); @@ -148,4 +148,4 @@ bool np_send_info(netplay_t *netplay); bool np_get_info(netplay_t *netplay); bool np_is_server(netplay_t* netplay); bool np_is_spectate(netplay_t* netplay); -#endif \ No newline at end of file +#endif