summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-11-12 11:09:45 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:11:14 +0200
commit7b489fb167da23bedc5e03b32cc2bab3d2a4ff3d (patch)
tree51dad8be675434b25a59a7b96c8f95908c764670
parent857ee50b69957270be3959080bd46f9f0ac84a11 (diff)
downloadexternal_gettext-7b489fb167da23bedc5e03b32cc2bab3d2a4ff3d.zip
external_gettext-7b489fb167da23bedc5e03b32cc2bab3d2a4ff3d.tar.gz
external_gettext-7b489fb167da23bedc5e03b32cc2bab3d2a4ff3d.tar.bz2
Rely on SIZE_MAX.
-rw-r--r--gettext-tools/lib/ChangeLog4
-rw-r--r--gettext-tools/lib/xsize.h3
-rw-r--r--gettext-tools/m4/ChangeLog6
-rw-r--r--gettext-tools/m4/Makefile.am1
4 files changed, 11 insertions, 3 deletions
diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog
index f17d793..7004891 100644
--- a/gettext-tools/lib/ChangeLog
+++ b/gettext-tools/lib/ChangeLog
@@ -1,3 +1,7 @@
+2003-11-11 Bruno Haible <bruno@clisp.org>
+
+ * xsize.h (SIZE_MAX): Remove fallback definition.
+
2003-11-05 Bruno Haible <bruno@clisp.org>
* xsize.h: Include limits.h, to avoid a possible collision with
diff --git a/gettext-tools/lib/xsize.h b/gettext-tools/lib/xsize.h
index 34919f8..42aa68a 100644
--- a/gettext-tools/lib/xsize.h
+++ b/gettext-tools/lib/xsize.h
@@ -27,9 +27,6 @@
#if HAVE_STDINT_H
# include <stdint.h>
#endif
-#ifndef SIZE_MAX
-# define SIZE_MAX ((size_t) -1)
-#endif
/* The size of memory objects is often computed through expressions of
type size_t. Example:
diff --git a/gettext-tools/m4/ChangeLog b/gettext-tools/m4/ChangeLog
index a4e58fd..ac20ac7 100644
--- a/gettext-tools/m4/ChangeLog
+++ b/gettext-tools/m4/ChangeLog
@@ -1,3 +1,9 @@
+2003-11-11 Bruno Haible <bruno@clisp.org>
+
+ * size_max.m4: New file, from gnulib.
+ * xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
+ * Makefile.am (EXTRA_DIST): Add size_max.m4.
+
2003-11-04 Bruno Haible <bruno@clisp.org>
* xsize.m4: New file.
diff --git a/gettext-tools/m4/Makefile.am b/gettext-tools/m4/Makefile.am
index 26f947c..bb5c5c8 100644
--- a/gettext-tools/m4/Makefile.am
+++ b/gettext-tools/m4/Makefile.am
@@ -61,6 +61,7 @@ setlocale.m4 \
sig_atomic_t.m4 \
siginfo.m4 \
signalblocking.m4 \
+size_max.m4 \
ssize_t.m4 \
stdbool.m4 \
strerror.m4 \