From aa9de77ed52bd8d7d70eba8533952121b836be9b Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sun, 27 Oct 2013 21:48:58 +0100 Subject: gtkui: fixed gtkglext dependency --- plugins/gtkui/gtkuigl.c | 4 ++-- plugins/gtkui/gtkuigl.h | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/gtkui/gtkuigl.c b/plugins/gtkui/gtkuigl.c index e210d03b..25226731 100644 --- a/plugins/gtkui/gtkuigl.c +++ b/plugins/gtkui/gtkuigl.c @@ -19,13 +19,13 @@ #include "../../deadbeef.h" #include "gtkui.h" #include "support.h" -#include "gtkuigl.h" - #ifdef __APPLE__ #undef USE_OPENGL #endif #ifdef USE_OPENGL +#include "gtkuigl.h" + static int gl_initialized; static int gl_init_state; //PFNGLXSWAPINTERVALSGIPROC glXSwapIntervalSGI; diff --git a/plugins/gtkui/gtkuigl.h b/plugins/gtkui/gtkuigl.h index c2a0d0a9..2bab1836 100644 --- a/plugins/gtkui/gtkuigl.h +++ b/plugins/gtkui/gtkuigl.h @@ -19,7 +19,11 @@ #ifndef __GTKUIGL_H #define __GTKUIGL_H -#ifndef __APPLE__ +#ifdef __APPLE__ +#undef USE_OPENGL +#endif + +#ifdef USE_OPENGL #include #include #include -- cgit v1.2.3