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

Brian Paul brian.e.paul at gmail.com
Mon Jun 18 06:52:51 PDT 2012


On Sun, Jun 17, 2012 at 11:12 PM, Vinson Lee <vlee at freedesktop.org> 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/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;

Reviewed-by: Brian Paul <brianp at vmware.com>


More information about the mesa-dev mailing list