Prevent GL/glx.h from defining prototypes

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-02-09 00:36:14 +00:00
parent 4c99ecfde4
commit 136ce7c9e8
12 changed files with 10 additions and 13 deletions

View File

@ -10,7 +10,6 @@
*
*/
#include <GL/glx.h>
#include <X11/Xlib-xcb.h>
#include <assert.h>
#include <limits.h>

View File

@ -2,8 +2,10 @@
// Copyright (c) Yuxuan Shui <yshuiv7@gmail.com>
#pragma once
#include <stdbool.h>
// Older version of glx.h defines function prototypes...
#define glXSwapIntervalMESA glXSwapIntervalMESA_
#include <GL/glx.h>
#include <GL/glxext.h>
#undef glXSwapIntervalMESA
#include <X11/Xlib.h>
#include <xcb/xcb.h>
#include <xcb/render.h>