Skip to content

Commit b61f9d9

Browse files
committed
Partially disable clang-format in Windows socket for include order
1 parent e9747f4 commit b61f9d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fly/socket/win/socket_impl.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
#include "fly/socket/socket_config.hpp"
55
#include "fly/system/system.hpp"
66

7+
// WinSock2.h must be included before WS2tcpip.h to avoid compile errors.
8+
// clang-format off
79
#include <WinSock2.h>
810
#include <WS2tcpip.h>
11+
// clang-format on
12+
913
#include <socketapi.h>
1014

1115
namespace fly {

0 commit comments

Comments
 (0)