From 69b49d424b8e3922e7caf2931778e3ed4d807eab Mon Sep 17 00:00:00 2001 From: Evgeny Date: Sat, 25 Apr 2026 01:02:50 +0300 Subject: [PATCH] Fix: Include platform_compat.h before winsock2.h in debug_config.h so tc_htonl/tc_htons macros are defined first --- lib/debug_config.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/debug_config.h b/lib/debug_config.h index 3f8e3ca0..f75e05db 100644 --- a/lib/debug_config.h +++ b/lib/debug_config.h @@ -6,9 +6,11 @@ #ifndef DEBUG_CONFIG_H #define DEBUG_CONFIG_H -#ifdef _WIN32 - #include - #include +#include "platform_compat.h" + +#ifdef _WIN32 + #include + #include #else #include // struct sockaddr_storage #endif