From 692b3c6137c548fe84dffa1c84ef7ec5a328055f Mon Sep 17 00:00:00 2001 From: CPunch Date: Mon, 27 Jun 2022 19:11:43 -0500 Subject: [PATCH] Lib: fix windows headers --- lib/include/lsocket.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/include/lsocket.h b/lib/include/lsocket.h index cd3d261..4862f1d 100644 --- a/lib/include/lsocket.h +++ b/lib/include/lsocket.h @@ -1,6 +1,11 @@ #ifndef LAIKA_SOCKET_H #define LAIKA_SOCKET_H + +/* clang-format will change the order of the included windows headers, this BREAKS THINGS. for now, make clang ignore this section */ + +/* clang-format off */ + /* socket/winsock headers */ #ifdef _WIN32 /* windows */ @@ -8,8 +13,8 @@ # define NOMINMAX # endif # define _WINSOCK_DEPRECATED_NO_WARNINGS -# include # include +# include # include # pragma comment(lib, "Ws2_32.lib") @@ -54,6 +59,8 @@ typedef void buffer_t; #include #include +/* clang-format on */ + typedef enum { RAWSOCK_OK,