File: fixx11h_test2.cpp

package info (click to toggle)
kwindowsystem 5.116.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 22,624 kB
  • sloc: cpp: 21,787; makefile: 7; sh: 1
file content (23 lines) | stat: -rw-r--r-- 507 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* This file is part of the KDE libraries
    SPDX-FileCopyrightText: 2009 David Faure <faure@kde.org>
    SPDX-FileCopyrightText: 2009 Maciej Mrozowski <reavertm@poczta.fm>

    SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/

// Test the case where Xdefs.h is first
#include <X11/Xdefs.h>

static Bool foo()
{
    return 1; // Xdefs doesn't define True!
}

#include <X11/Xlib.h>
#include <fixx11h.h>

int main(int, char **)
{
    Bool b = foo();
    return b;
}