Revert "mesa_glinterop: remove inclusion of GLX header"
This reverts commit8472045b16
. Conflicts: include/GL/mesa_glinterop.h This patch fixes this build error with GCC 4.4. Compiling src/glx/dri_common_interop.c ... In file included from src/glx/dri_common_interop.c:33: include/GL/mesa_glinterop.h:62: error: redefinition of typedef ‘GLXContext’ include/GL/glx.h:165: note: previous declaration of ‘GLXContext’ was here Fixes:8472045b16
("mesa_glinterop: remove inclusion of GLX header") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96770 Signed-off-by: Vinson Lee <vlee@freedesktop.org>
This commit is contained in:
@@ -52,15 +52,12 @@
|
|||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <GL/glx.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Forward declarations to avoid inclusion of GL/glx.h */
|
|
||||||
typedef struct _XDisplay Display;
|
|
||||||
typedef struct __GLXcontextRec *GLXContext;
|
|
||||||
|
|
||||||
/* Forward declarations to avoid inclusion of EGL/egl.h */
|
/* Forward declarations to avoid inclusion of EGL/egl.h */
|
||||||
typedef void *EGLDisplay;
|
typedef void *EGLDisplay;
|
||||||
typedef void *EGLContext;
|
typedef void *EGLContext;
|
||||||
|
Reference in New Issue
Block a user