From e0a69559242428aeb652320d6ba3fd4ef0b90bf3 Mon Sep 17 00:00:00 2001 From: "Christian F. Coors" Date: Tue, 10 Jan 2017 11:38:55 +0100 Subject: [PATCH] Remove openssl dependency when building without network support --- src/openrct2/network/network.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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.