From 645aa5df6bd4926187ddd4fdee85e133c4e968cf Mon Sep 17 00:00:00 2001 From: Fletcher Dunn Date: Tue, 6 Oct 2020 15:52:22 -0700 Subject: [PATCH] Compile fixes from Steam. (NOP for this code.) P4:6127531, 6127534 --- .../steamnetworkingsockets_internal.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/steamnetworkingsockets/steamnetworkingsockets_internal.h b/src/steamnetworkingsockets/steamnetworkingsockets_internal.h index 4290a55..20a9824 100644 --- a/src/steamnetworkingsockets/steamnetworkingsockets_internal.h +++ b/src/steamnetworkingsockets/steamnetworkingsockets_internal.h @@ -78,11 +78,19 @@ #define STEAMNETWORKINGSOCKETS_ENABLE_STEAMNETWORKINGMESSAGES #endif -#ifndef STEAMNETWORKINGSOCKETS_OPENSOURCE +#if !defined( STEAMNETWORKINGSOCKETS_OPENSOURCE ) && !defined( STEAMNETWORKINGSOCKETS_STREAMINGCLIENT ) // STEAMNETWORKINGSOCKETS_CAN_REQUEST_CERT means we know how to make a cert request from some sort of certificate authority #define STEAMNETWORKINGSOCKETS_CAN_REQUEST_CERT #endif +// Always #define STEAMNETWORKINGSOCKETS_ENABLE_ICE, except in the opensource build. +// There, it must go on the command line +#ifndef STEAMNETWORKINGSOCKETS_ENABLE_ICE + #ifndef STEAMNETWORKINGSOCKETS_OPENSOURCE + #define STEAMNETWORKINGSOCKETS_ENABLE_ICE + #endif +#endif + // Redefine the macros for byte-swapping, to sure the correct // argument size. We probably should move this into platform.h, // but I suspect we'd find a bunch of "bugs" which currently don't