aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>2005-10-21 21:40:32 +0200
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2005-10-21 19:40:32 +0000
commitc7ba5f8dff6d2607cf0b6822f89997fdc7e8f1ee (patch)
treeafeb9de5311930cd456267db2bde5f3cefaf7ebd
parentbf9d2177bff84eab383fa36cdee01e122884d5da (diff)
downloadgcc-c7ba5f8dff6d2607cf0b6822f89997fdc7e8f1ee.zip
gcc-c7ba5f8dff6d2607cf0b6822f89997fdc7e8f1ee.tar.gz
gcc-c7ba5f8dff6d2607cf0b6822f89997fdc7e8f1ee.tar.bz2
re PR libfortran/24383 (mingw doesn't have SSIZE_MAX)
PR libfortran/24383 * io/unix.c: Add fallback definition for SSIZE_MAX. From-SVN: r105768
-rw-r--r--libgfortran/ChangeLog5
-rw-r--r--libgfortran/io/unix.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 4c5dc9b..2c4f5f8 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,8 @@
+2005-10-21 Francois-Xavier Coudert <coudert@clipper.ens.fr>
+
+ PR libfortran/24383
+ * io/unix.c: Add fallback definition for SSIZE_MAX.
+
2005-10-19 Francois-Xavier Coudert <coudert@clipper.ens.fr>
* c99_protos.h: Define preprocessor HAVE_ macros with value 1
diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c
index ea03515..91a7a47 100644
--- a/libgfortran/io/unix.c
+++ b/libgfortran/io/unix.c
@@ -46,6 +46,10 @@ Boston, MA 02110-1301, USA. */
#include "libgfortran.h"
#include "io.h"
+#ifndef SSIZE_MAX
+#define SSIZE_MAX SHRT_MAX
+#endif
+
#ifndef PATH_MAX
#define PATH_MAX 1024
#endif