aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-02 21:16:39 +0000
committerRoland McGrath <roland@gnu.org>2002-08-02 21:16:39 +0000
commit8102f4f96efb6f072d98b49089d3c1bfb6386a6e (patch)
tree0af40a28a357a6dc745892645f9baf45743b4829
parent8fe0477142bdc02285603e2a7a65b7d2fc230f75 (diff)
downloadglibc-8102f4f96efb6f072d98b49089d3c1bfb6386a6e.tar
glibc-8102f4f96efb6f072d98b49089d3c1bfb6386a6e.tar.gz
glibc-8102f4f96efb6f072d98b49089d3c1bfb6386a6e.tar.bz2
glibc-8102f4f96efb6f072d98b49089d3c1bfb6386a6e.zip
* posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
On 32-bit platforms they are the same; on 64-bit platforms ssize_t matches long int, not int.
-rw-r--r--ChangeLog4
-rw-r--r--posix/bits/posix1_lim.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e5e61acb69..72c893b89c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2002-08-02 Roland McGrath <roland@redhat.com>
+ * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
+ On 32-bit platforms they are the same; on 64-bit platforms ssize_t
+ matches long int, not int.
+
* locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
* wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
* locale/lc-ctype.c (_nl_postload_ctype): Likewise.
diff --git a/posix/bits/posix1_lim.h b/posix/bits/posix1_lim.h
index e16f4674dd..050fe47fdb 100644
--- a/posix/bits/posix1_lim.h
+++ b/posix/bits/posix1_lim.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,92,93,96,98,2000,2001 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,93,96,98,2000,01,02 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -127,7 +127,7 @@
#ifndef SSIZE_MAX
-# define SSIZE_MAX INT_MAX
+# define SSIZE_MAX LONG_MAX
#endif