aboutsummaryrefslogtreecommitdiffstats
path: root/src/c.zig
blob: 5d539d2d33a134da6aff765cb16d762f5d81bfb8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const build_options = @import("build_options");

pub const c = @cImport({
    @cInclude("stdio.h");
    @cInclude("X11/Xlib.h");
    @cInclude("X11/Xutil.h");
    @cInclude("X11/keysym.h");
    @cInclude("X11/extensions/Xrandr.h");
    @cInclude("GL/glew.h");
    @cInclude("GL/glx.h");
    if (build_options.use_xshm) {
        @cInclude("X11/extensions/XShm.h");
        @cInclude("sys/shm.h");
    }
});