diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index ffe1fdfa80..0e5e45fccc 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -43,7 +43,6 @@ extern "C" { #include "../game.h" #include "../platform/platform.h" #include "../localisation/string_ids.h" -#include #ifdef __cplusplus } #endif // __cplusplus @@ -52,6 +51,14 @@ extern "C" { #ifndef DISABLE_NETWORK +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus +#include +#ifdef __cplusplus +} +#endif // __cplusplus + // This define specifies which version of network stream current build uses. // It is used for making sure only compatible builds get connected, even within // single OpenRCT2 version.