diff options
author | Francois-Xavier Coudert <coudert@clipper.ens.fr> | 2005-10-21 21:40:32 +0200 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2005-10-21 19:40:32 +0000 |
commit | c7ba5f8dff6d2607cf0b6822f89997fdc7e8f1ee (patch) | |
tree | afeb9de5311930cd456267db2bde5f3cefaf7ebd /libgfortran/io/unix.c | |
parent | bf9d2177bff84eab383fa36cdee01e122884d5da (diff) | |
download | gcc-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
Diffstat (limited to 'libgfortran/io/unix.c')
-rw-r--r-- | libgfortran/io/unix.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |