changeset 4855:21b00e0426f7

Solaris portability problem.
author Bruno Haible <bruno@clisp.org>
date Wed, 05 Nov 2003 11:36:58 +0000
parents 99f086003300
children 2759ea168f25
files lib/ChangeLog lib/xsize.h
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+2003-11-05  Bruno Haible  <bruno@clisp.org>
+
+	* xsize.h: Include limits.h, to avoid a possible collision with
+	SIZE_MAX defined in <limits.h> on Solaris.
+
 2003-11-04  Bruno Haible  <bruno@clisp.org>
 
 	* xsize.h: New file.
--- a/lib/xsize.h
+++ b/lib/xsize.h
@@ -23,6 +23,7 @@
 #include <stddef.h>
 
 /* Get SIZE_MAX.  */
+#include <limits.h>
 #if HAVE_STDINT_H
 # include <stdint.h>
 #endif