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
#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

Loading…
Cancel
Save