From 4ca505d01e8cd7c49309d05006cb17ab0627d090 Mon Sep 17 00:00:00 2001 From: Alexander Epaneshnikov Date: Fri, 1 Apr 2022 14:14:32 +0300 Subject: [PATCH] windows: don't include winsock2.h otherwise we get many errors --- src/include/compat/endian.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/compat/endian.h b/src/include/compat/endian.h index d28920ee..96b41d57 100644 --- a/src/include/compat/endian.h +++ b/src/include/compat/endian.h @@ -18,6 +18,7 @@ #ifndef ENDIAN_H_COMPAT_SHIM #define ENDIAN_H_COMPAT_SHIM +#pragma once #if defined(HAVE_ENDIAN_H) # pragma GCC system_header // Silence "warning: #include_next is a GCC extension" @@ -66,7 +67,6 @@ # define __PDP_ENDIAN PDP_ENDIAN #elif defined(_WIN16) || defined(_WIN32) || defined(_WIN64) # if BYTE_ORDER == LITTLE_ENDIAN -# include # define htobe16(x) htons(x) # define htole16(x) (x)