Browse Source

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

congestion
Evgeny 5 months ago
parent
commit
69b49d424b
  1. 8
      lib/debug_config.h

8
lib/debug_config.h

@ -6,9 +6,11 @@
#ifndef DEBUG_CONFIG_H #ifndef DEBUG_CONFIG_H
#define DEBUG_CONFIG_H #define DEBUG_CONFIG_H
#ifdef _WIN32 #include "platform_compat.h"
#include <winsock2.h>
#include <ws2tcpip.h> #ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#else #else
#include <sys/socket.h> // struct sockaddr_storage #include <sys/socket.h> // struct sockaddr_storage
#endif #endif

Loading…
Cancel
Save