re PR libfortran/24383 (mingw doesn't have SSIZE_MAX)
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>
Fri, 21 Oct 2005 19:40:32 +0000 (21:40 +0200)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Fri, 21 Oct 2005 19:40:32 +0000 (19:40 +0000)
PR libfortran/24383
* io/unix.c: Add fallback definition for SSIZE_MAX.

From-SVN: r105768

libgfortran/ChangeLog
libgfortran/io/unix.c

index 4c5dc9b548094afa0385f37ae4aad7417a1c6410..2c4f5f8f7127538ca3edb5aa64fc577c5f8d08c9 100644 (file)
@@ -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
index ea03515f4688210cbe9a135f65a3a94d5df2481f..91a7a474d078b5943fcff24d8ebd6140d78b867c 100644 (file)
@@ -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