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

Kenneth Graunke kenneth at whitecape.org
Sat Oct 27 19:15:36 PDT 2012


On 10/27/2012 01:01 PM, Vinson Lee wrote:
> 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;

I'm somewhat skeptical that ctype.h actually needs _R, _G, and _B macros 
defined...and if it does, I'm -really- skeptical that we're #define'ing 
them to the expected values.  We probably define macros that have a 
different meaning...


More information about the mesa-dev mailing list