[Debburn-devel] [PATCH] Building on FreeBSD
Lorenz Minder
lminder at gmx.net
Sun Sep 24 12:43:47 UTC 2006
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
-------------- next part --------------
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)
More information about the Debburn-devel
mailing list