DONE, r357, Re: [Debburn-devel] [PATCH] Building on FreeBSD

Eduard Bloch edi at gmx.de
Tue Oct 3 12:25:50 UTC 2006


#include <hallo.h>
* Lorenz Minder [Sun, Sep 24 2006, 02:43:47PM]:
> Hi,
> 
> Another one I forgot to send in: SIZE_T_MAX is already defined, because
> <sys/param.h> is being included.  Even without the patch, everything
> builds; the difference is just that tons of warnings are avoided with
> the patch.
> 
> One could also #ifdef protect the other #defines, but since these
> fixes are easy enough to make, I think it's enough just to protect the
> ones which we actually observe to cause problems on some platform.
> 
> Best,
> --Lorenz

> Index: include/utypes.h
> ===================================================================
> --- include/utypes.h	(revision 332)
> +++ include/utypes.h	(working copy)
> @@ -382,7 +382,9 @@
>  #endif
>  
>  #define	SIZE_T_MIN	TYPE_MINVAL(size_t)
> +#ifndef SIZE_T_MAX
>  #define	SIZE_T_MAX	TYPE_MAXVAL(size_t)
> +#endif
>  
>  #define	SSIZE_T_MIN	TYPE_MINVAL(ssize_t)
>  #define	SSIZE_T_MAX	TYPE_MAXVAL(ssize_t)

> _______________________________________________
> Debburn-devel mailing list
> Debburn-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/debburn-devel


-- 
Das Probelm der Zeitungsberichterstatter besteht darin, daß das
normale uninteressant ist.
		-- Saul Bellow



More information about the Debburn-devel mailing list