[Mesa-dev] [PATCH] st/glx: Do not undefine _R, _G, and _B.

Vinson Lee vlee at freedesktop.org
Sun Jun 17 22:12:06 PDT 2012


Fixes build error on Cygwin and Solaris. _R, _G, and _B are used in
ctype.h on those platforms.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 src/gallium/state_trackers/glx/xlib/glx_usefont.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/gallium/state_trackers/glx/xlib/glx_usefont.c b/src/gallium/state_trackers/glx/xlib/glx_usefont.c
index 0aa37e1..fa5c93a 100644
--- a/src/gallium/state_trackers/glx/xlib/glx_usefont.c
+++ b/src/gallium/state_trackers/glx/xlib/glx_usefont.c
@@ -37,9 +37,6 @@
 /* Some debugging info.  */
 
 #ifdef DEBUG
-#undef _R
-#undef _G
-#undef _B
 #include <ctype.h>
 
 int debug_xfonts = 0;
-- 
1.7.10.1



More information about the mesa-dev mailing list