diff --git a/src/openrct2/network/NetworkBase.h b/src/openrct2/network/NetworkBase.h index c8502e3a61..ad8eed136e 100644 --- a/src/openrct2/network/NetworkBase.h +++ b/src/openrct2/network/NetworkBase.h @@ -10,6 +10,8 @@ #include +#ifndef DISABLE_NETWORK + class NetworkBase { public: @@ -229,3 +231,5 @@ private: // Client Data bool _requireReconnect = false; bool _clientMapLoaded = false; }; + +#endif // DISABLE_NETWORK diff --git a/src/openrct2/network/NetworkClient.h b/src/openrct2/network/NetworkClient.h index a4f993cb82..34b3fd3d5e 100644 --- a/src/openrct2/network/NetworkClient.h +++ b/src/openrct2/network/NetworkClient.h @@ -2,7 +2,11 @@ #include "NetworkBase.h" +#ifndef DISABLE_NETWORK + class NetworkClient final : public NetworkBase { public: }; + +#endif // DISABLE_NETWORK diff --git a/src/openrct2/network/NetworkServer.h b/src/openrct2/network/NetworkServer.h index 3e40443bf6..38b3986657 100644 --- a/src/openrct2/network/NetworkServer.h +++ b/src/openrct2/network/NetworkServer.h @@ -2,7 +2,11 @@ #include "NetworkBase.h" +#ifndef DISABLE_NETWORK + class NetworkServer final : public NetworkBase { public: }; + +#endif // DISABLE_NETWORK