Warning, file /frameworks/kwindowsystem/autotests/fixx11h_test2.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* This file is part of the KDE libraries 0002 SPDX-FileCopyrightText: 2009 David Faure <faure@kde.org> 0003 SPDX-FileCopyrightText: 2009 Maciej Mrozowski <reavertm@poczta.fm> 0004 0005 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0006 */ 0007 0008 // Test the case where Xdefs.h is first 0009 #include <X11/Xdefs.h> 0010 0011 static Bool foo() 0012 { 0013 return 1; // Xdefs doesn't define True! 0014 } 0015 0016 #include <X11/Xlib.h> 0017 #include <fixx11h.h> 0018 0019 int main(int, char **) 0020 { 0021 Bool b = foo(); 0022 return b; 0023 }