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

Vinson Lee vlee at freedesktop.org
Sat Oct 27 13:01:11 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/mesa/drivers/x11/xfonts.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/mesa/drivers/x11/xfonts.c b/src/mesa/drivers/x11/xfonts.c
index 9957e89..a92d24a 100644
--- a/src/mesa/drivers/x11/xfonts.c
+++ b/src/mesa/drivers/x11/xfonts.c
@@ -41,9 +41,6 @@
 /* Some debugging info.  */
 
 #ifdef DEBUG
-#undef _R
-#undef _G
-#undef _B
 #include <ctype.h>
 
 int debug_xfonts = 0;
-- 
1.7.9



More information about the mesa-dev mailing list