From 03ebae4c33e7a799abe589aebd745accef9f660b Mon Sep 17 00:00:00 2001 From: Richard Grenville Date: Sun, 11 Jan 2015 10:47:19 +0800 Subject: [PATCH] Bug fix: Compilation failure with NO_VSYNC_OPENGL=1 Fix compilation failure with NO_VSYNC_OPENGL=1, caused by one incorrectly placed "#endif" in "src/common.h". --- src/common.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common.h b/src/common.h index 0aa4f18b..3be2665d 100644 --- a/src/common.h +++ b/src/common.h @@ -127,8 +127,9 @@ #include #endif -// libGL #ifdef CONFIG_VSYNC_OPENGL + +// libGL #if defined(CONFIG_VSYNC_OPENGL_GLSL) || defined(CONFIG_VSYNC_OPENGL_FBO) #define GL_GLEXT_PROTOTYPES #endif @@ -145,6 +146,8 @@ #define GLX_BACK_BUFFER_AGE_EXT 0x20F4 #endif +#endif + // === Macros === #define MSTR_(s) #s @@ -2485,8 +2488,6 @@ c2_matchd(session_t *ps, win *w, const c2_lptr_t *condlst, ///@} -#endif - /** * @brief Dump the given data to a file. */