diff --git a/src/steamnetworkingsockets/clientlib/csteamnetworkingsockets.h b/src/steamnetworkingsockets/clientlib/csteamnetworkingsockets.h index 397c1b8..e779d95 100644 --- a/src/steamnetworkingsockets/clientlib/csteamnetworkingsockets.h +++ b/src/steamnetworkingsockets/clientlib/csteamnetworkingsockets.h @@ -8,12 +8,14 @@ #include #include -#ifdef STEAMNETWORKINGSOCKETS_STEAMCLIENT - #include - #include +#if defined( STEAMNETWORKINGSOCKETS_STEAMCLIENT ) || defined( STEAMNETWORKINGSOCKETS_STREAMINGCLIENT ) + #include "../../common/steam/iclientnetworkingsockets.h" + #include "../../common/steam/iclientnetworkingutils.h" + #define ICLIENTNETWORKING_OVERRIDE override #else typedef ISteamNetworkingSockets IClientNetworkingSockets; typedef ISteamNetworkingUtils IClientNetworkingUtils; + #define ICLIENTNETWORKING_OVERRIDE #endif #include "steamnetworkingsockets_connections.h" @@ -57,7 +59,7 @@ public: /// Perform cleanup and self-destruct. Use this instead of /// calling operator delete. This solves some complications /// due to calling virtual functions from within destructor. - virtual void Destroy(); + virtual void Destroy() ICLIENTNETWORKING_OVERRIDE; const SteamNetworkingIdentity &InternalGetIdentity() {