mingw32: fix winsock2.h include

winsock2.h needs to be included before windows.h

> /usr/share/mingw-w64/include/winsock2.h:15:2: error: #warning Please include winsock2.h before windows.h [-Werror=cpp]
>    15 | #warning Please include winsock2.h before windows.h
>       |  ^~~~~~~

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-12-12 17:44:34 +01:00
parent 1ce24cdd9c
commit c9dde4ef01
2 changed files with 1 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ is" without express or implied warranty.
#include <dix-config.h>
#ifdef WIN32
#include <X11/Xwinsock.h>
#include <X11/Xwindows.h>
#endif

View File

@@ -39,8 +39,6 @@
#include <limits.h>
#include <stdbool.h>
#include <X11/Xwindows.h>
#include <winsock2.h>
#include <xcb/xcb.h>
#include <xcb/xcb_icccm.h>
#include <xcb/xcb_image.h>