OSDN Git Service

PR libfortran/24383
authorfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Oct 2005 19:40:32 +0000 (19:40 +0000)
committerfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Oct 2005 19:40:32 +0000 (19:40 +0000)
* io/unix.c: Add fallback definition for SSIZE_MAX.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105768 138bc75d-0d04-0410-961f-82ee72b054a4

libgfortran/ChangeLog
libgfortran/io/unix.c

index 4c5dc9b..2c4f5f8 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 ea03515..91a7a47 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