From f567a941456d8167c20598d7fd9819338307ac69 Mon Sep 17 00:00:00 2001 From: Nomads_Reach <144523850+NomadsReach@users.noreply.github.com> Date: Sun, 16 Aug 2026 00:24:21 -0400 Subject: [PATCH] Include GNS address utility definitions --- server/native_transport/CMakeLists.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/server/native_transport/CMakeLists.txt b/server/native_transport/CMakeLists.txt index 65b7c9e..1386e12 100644 --- a/server/native_transport/CMakeLists.txt +++ b/server/native_transport/CMakeLists.txt @@ -26,7 +26,17 @@ add_subdirectory("${GNS_SOURCE_DIR}" "${CMAKE_BINARY_DIR}/gns") add_library(commonwealth_online_gns_bridge SHARED co_gns_server_bridge.cpp) target_include_directories(commonwealth_online_gns_bridge PUBLIC "${CMAKE_CURRENT_LIST_DIR}") target_compile_definitions(commonwealth_online_gns_bridge PRIVATE CO_GNS_BRIDGE_BUILD) -target_compile_options(commonwealth_online_gns_bridge PRIVATE -Wall -Wextra -Werror) +# steamnetworkingtypes.h declares several address helpers inline, while the +# standalone definitions live in isteamnetworkingutils.h. Make that public GNS +# utility header explicit for this translation unit instead of suppressing the +# undefined-inline diagnostic. +target_compile_options(commonwealth_online_gns_bridge PRIVATE + -Wall + -Wextra + -Werror + -include + steam/isteamnetworkingutils.h +) target_link_libraries(commonwealth_online_gns_bridge PRIVATE GameNetworkingSockets::shared) set_target_properties(commonwealth_online_gns_bridge PROPERTIES OUTPUT_NAME "commonwealth_online_gns_bridge")