Commit 137fea8a authored by Alex Richardson's avatar Alex Richardson Committed by Vlad Zahorodnii
Browse files

Use #cmakedefine01 for the remaining config macros

Using 0/1 instead of undefined/defined to 1 allows the compiler to flag
a missing include of the config header.
parent 0a0a1fd3
Pipeline #151254 passed with stage
in 28 minutes and 12 seconds
......@@ -26,13 +26,13 @@
#define BREEZE_KDECORATION_PLUGIN_ID "${BREEZE_KDECORATION_PLUGIN_ID}"
#endif
#cmakedefine XCB_ICCCM_FOUND 1
#ifndef XCB_ICCCM_FOUND
#cmakedefine01 XCB_ICCCM_FOUND
#if !XCB_ICCCM_FOUND
#define XCB_ICCCM_WM_STATE_WITHDRAWN 0
#define XCB_ICCCM_WM_STATE_NORMAL 1
#define XCB_ICCCM_WM_STATE_ICONIC 3
#endif
#cmakedefine PipeWire_FOUND 1
#cmakedefine01 PipeWire_FOUND
#cmakedefine HAVE_XWAYLAND_LISTENFD
#cmakedefine01 HAVE_XWAYLAND_LISTENFD
......@@ -46,7 +46,7 @@
#include <xcb/damage.h>
#include <xcb/sync.h>
#ifdef XCB_ICCCM_FOUND
#if XCB_ICCCM_FOUND
#include <xcb/xcb_icccm.h>
#endif
......
......@@ -53,7 +53,7 @@ Q_IMPORT_PLUGIN(KWinIntegrationPlugin)
Q_IMPORT_PLUGIN(KGlobalAccelImpl)
Q_IMPORT_PLUGIN(KWindowSystemKWinPlugin)
Q_IMPORT_PLUGIN(KWinIdleTimePoller)
#ifdef PipeWire_FOUND
#if PipeWire_FOUND
Q_IMPORT_PLUGIN(ScreencastManagerFactory)
#endif
......
......@@ -195,7 +195,7 @@ bool Xwayland::startInternal()
for (int socket : qAsConst(m_listenFds)) {
int dupSocket = dup(socket);
fdsToClose << dupSocket;
#if defined(HAVE_XWAYLAND_LISTENFD)
#if HAVE_XWAYLAND_LISTENFD
arguments << QStringLiteral("-listenfd") << QString::number(dupSocket);
#else
arguments << QStringLiteral("-listen") << QString::number(dupSocket);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment