From 645f5adfc27d675d84ee633245f539c6513a7033 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 17 Mar 2022 11:51:32 +0200 Subject: [PATCH] Remove guards around unistd.h We take unistd.h for granted in many places, so remove guards around the corresponding includes to make code consistent. --- src/main.cpp | 6 +----- src/main_x11.cpp | 4 +--- src/xwl/xwayland.cpp | 8 ++------ 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index bb29025d9c..8826b3f0ef 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -46,14 +46,10 @@ #include #include -// system -#if __has_include() -#include -#endif - #ifdef __has_include() #include #endif +#include // xcb #include diff --git a/src/main_x11.cpp b/src/main_x11.cpp index 5cc4734a59..56531bcda6 100644 --- a/src/main_x11.cpp +++ b/src/main_x11.cpp @@ -42,10 +42,8 @@ #include // system -#if __has_include() -#include -#endif #include +#include Q_LOGGING_CATEGORY(KWIN_CORE, "kwin_core", QtWarningMsg) diff --git a/src/xwl/xwayland.cpp b/src/xwl/xwayland.cpp index 10e1e68249..07656d414d 100644 --- a/src/xwl/xwayland.cpp +++ b/src/xwl/xwayland.cpp @@ -42,14 +42,10 @@ #include #include -// system -#if __has_include() -#include -#endif - -#include #include #include +#include +#include namespace KWin {