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:
1 parent
6284a95267
commit
69b49d424b
1 file changed
+5
-3
+5
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user