Fix: Include platform_compat.h before winsock2.h in debug_config.h so tc_htonl/tc_htons macros are defined first

This commit is contained in:
Evgeny committed 2026-04-25 01:02:50 +03:00
1 parent 6284a95267
commit 69b49d424b
1 file changed
+5 -3
+5 -3
View File
@@ -6,9 +6,11 @@
#ifndef DEBUG_CONFIG_H
#define DEBUG_CONFIG_H
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#include "platform_compat.h"
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/socket.h> // struct sockaddr_storage
#endif