[PATCH] kbproto: typedef instead of #define

Jeremy Huddleston jeremyhu at freedesktop.org
Mon Apr 6 18:50:12 PDT 2009


On Apr 6, 2009, at 17:34, Jeremy Huddleston wrote:
> diff --git a/include/X11/Xlib.h b/include/X11/Xlib.h
> index 44557ea..e134c62 100644
> --- a/include/X11/Xlib.h
> +++ b/include/X11/Xlib.h
> @@ -107,8 +107,8 @@ _Xmblen(
>
>  typedef char *XPointer;
>
> -#define Bool int
> -#define Status int
> +typedef int Bool;
> +typedef int Status;
>  #define True 1
>  #define False 0

Then that screws up when Xdefs.h is included after Xlib.h ... why  
doesn't Xlib.h just #include Xdefs.h to get these?



More information about the xorg-devel mailing list