From 64507f0085031b493abdd9eb65ed47cdd73c9954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 7 Jun 2016 19:22:05 +0200 Subject: [PATCH] Haiku: Do not define GLEW_ENABLED to undefine it later Partial revert of f61eb5fd8e13642c82364f8ee66a0f6c791a4511. (cherry picked from commit 4c658dc52303ece088a245ede2835a68b78530b2) --- drivers/gl_context/glew.c | 4 ---- platform/haiku/detect.py | 5 +++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/gl_context/glew.c b/drivers/gl_context/glew.c index 962e82b657f..fc0aa28a720 100644 --- a/drivers/gl_context/glew.c +++ b/drivers/gl_context/glew.c @@ -1,7 +1,3 @@ -#ifdef __HAIKU__ - #undef GLEW_ENABLED -#endif - #ifdef GLEW_ENABLED /* ** The OpenGL Extension Wrangler Library diff --git a/platform/haiku/detect.py b/platform/haiku/detect.py index 637b42dc034..2d132641f94 100644 --- a/platform/haiku/detect.py +++ b/platform/haiku/detect.py @@ -52,9 +52,10 @@ def configure(env): #env.Append(CCFLAGS=['-DFREETYPE_ENABLED']) env.Append(CPPFLAGS = ['-DPTHREAD_NO_RENAME']) # TODO: enable when we have pthread_setname_np - env.Append(CPPFLAGS = ['-DGLEW_ENABLED', '-DOPENGL_ENABLED', '-DMEDIA_KIT_ENABLED']) + #env.Append(CPPFLAGS = ['-DGLEW_ENABLED']) # TODO: investigate the GLEW situation on Haiku + env.Append(CPPFLAGS = ['-DOPENGL_ENABLED', '-DMEDIA_KIT_ENABLED']) env.Append(CPPFLAGS = ['-DUNIX_ENABLED', '-DGLES2_ENABLED', '-DGLES_OVER_GL']) - env.Append(LIBS = ['be', 'game', 'media', 'network', 'bnetapi', 'z', 'GL', 'GLEW']) + env.Append(LIBS = ['be', 'game', 'media', 'network', 'bnetapi', 'z', 'GL']) import methods env.Append(BUILDERS = {'GLSL120' : env.Builder(action = methods.build_legacygl_headers, suffix = 'glsl.h',src_suffix = '.glsl')})