GameNetworkingSockets icon indicating copy to clipboard operation
GameNetworkingSockets copied to clipboard

build: Compilation fixes for MinGW toolchain

Open ManManson opened this issue 11 months ago • 0 comments

This changeset incorporates a few fixes for build errors and warnings found when building GNS via llvm-mingw toolchain:

  • TraceLoggingProvider: Disable for MinGW builds (MinGW-provided winapi headers differ from original WinSDK headers a lot, which poses a problem when trying to compile TraceLoggingProvider code)
  • build: Fix compilation errors for cmsghdr-related things in MinGW builds (MinGW requires to include a different header file + need to alias WSACMSGHDR* to CMSGHDR/cmsghdr to avoid compilation errors)
  • SteamNetworkingIPAddr: fix potentially dangerous -wcast-align warning in IsIPv6AllZeroes()

ManManson avatar Apr 27 '25 09:04 ManManson