[PATCH:libX11 7/8] Add missing stdio header for printf(3) in DEBUG build.

walter harms wharms at bfs.de
Sun Jun 2 13:02:39 PDT 2013



Am 02.06.2013 20:49, schrieb Thomas Klausner:
> ---
>  src/xcms/cmsMath.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/xcms/cmsMath.c b/src/xcms/cmsMath.c
> index 70b0675..487eb3f 100644
> --- a/src/xcms/cmsMath.c
> +++ b/src/xcms/cmsMath.c
> @@ -35,6 +35,10 @@ in this Software without prior written authorization from The Open Group.
>  #include "Xlibint.h"
>  #include "Xcmsint.h"
>  
> +#ifdef DEBUG
> +#include <stdio.h>
> +#endif
> +

I guess libX11 can take the overhead even when DEBUG is nodef
just include.

#include <stdio.h>  /* debug code needs that */

re,
 wh


>  #include <float.h>
>  #ifndef DBL_EPSILON
>  #define DBL_EPSILON 1e-6


More information about the xorg-devel mailing list