Prevent GL/glx.h from defining prototypes
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
@ -10,7 +10,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <GL/glx.h>
|
||||
#include <X11/Xlib-xcb.h>
|
||||
#include <assert.h>
|
||||
#include <limits.h>
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user