]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
configure.in (NON_UNIX_STDIO): Define if MINGW32.
authorMumit Khan <khan@xraylith.wisc.edu>
Sat, 17 Jan 1998 21:37:48 +0000 (21:37 +0000)
committerJeff Law <law@gcc.gnu.org>
Sat, 17 Jan 1998 21:37:48 +0000 (14:37 -0700)
        * configure.in (NON_UNIX_STDIO): Define if MINGW32.
        (NON_ANSI_RW_MODE): Do not define for CYGWIN32 or MINGW32.
        * libI77/rawio.h: Don't providing conflicting declarations for
        read() and write(). MINGW32 header files use "const" quals.
        * libF77/s_paus.c: _WIN32 does not have pause().

From-SVN: r17397

gcc/f/runtime/ChangeLog.egcs
gcc/f/runtime/configure.in
gcc/f/runtime/libF77/s_paus.c
gcc/f/runtime/libI77/rawio.h

index 9f0680be7e8d1eb4022763b8f0df2c9358fcb7d4..47e86f466c09dcf1f331519360702d17c5448637 100644 (file)
@@ -1,3 +1,13 @@
+Sat Jan 17 22:40:31 1998  Mumit Khan <khan@xraylith.wisc.edu>
+       
+       * configure.in (NON_UNIX_STDIO): Define if MINGW32.
+       (NON_ANSI_RW_MODE): Do not define for CYGWIN32 or MINGW32.
+
+       * libI77/rawio.h: Don't providing conflicting declarations for
+       read() and write(). MINGW32 header files use "const" quals.
+
+       * libF77/s_paus.c: _WIN32 does not have pause().
+
 Tue Nov 18 09:49:04 1997  Mumit Khan   (khan@xraylith.wisc.edu)
 
        * libI77/close.c (f_exit): Reset f__init so that f_clos does not
index 7b1ed2cd0f82edc7ad8c4bac505ac811297abb77..f216731e04a745e754c2b6e68a41f7c6854e0068 100644 (file)
@@ -118,6 +118,19 @@ AC_CACHE_VAL(g77_cv_sys_cygwin32,
   g77_cv_sys_cygwin32=no))
 AC_MSG_RESULT($g77_cv_sys_cygwin32)
 
+# ditto for mingw32.
+AC_MSG_CHECKING([for mingw32])
+AC_CACHE_VAL(g77_cv_sys_mingw32,
+  AC_EGREP_CPP(yes,
+  [#ifdef __MINGW32__
+  yes
+#endif
+],
+  g77_cv_sys_mingw32=yes,
+  g77_cv_sys_mingw32=no))
+AC_MSG_RESULT($g77_cv_sys_mingw32)
+
+
 AC_CHECK_HEADER(fcntl.h,
    test $g77_cv_header_posix = yes && AC_DEFINE(_POSIX_SOURCE),
    AC_DEFINE(NO_FCNTL) AC_DEFINE(OPEN_DECL))
@@ -141,10 +154,12 @@ fi
 
 # This should always succeed on unix.
 # Apparently positive result on cygwin loses re. NON_UNIX_STDIO
-# (as of cygwin b18).
+# (as of cygwin b18). Likewise on mingw.
 AC_CHECK_FUNC(fstat)
 AC_MSG_CHECKING([need for NON_UNIX_STDIO])
-if test $g77_cv_sys_cygwin32 = yes || test $ac_cv_func_fstat = no; then
+if test $g77_cv_sys_cygwin32 = yes \
+  || test $g77_cv_sys_mingw32 = yes \
+  || test $ac_cv_func_fstat = no; then
   AC_MSG_RESULT(yes)
   AC_DEFINE(NON_UNIX_STDIO)
 else
@@ -215,7 +230,7 @@ AC_EGREP_CPP(yes,
   yes
 #endif
 ], is_unix=yes, is_unix=no)
-if test $g77_cv_sys_cygwin32 = yes; then
+if test $g77_cv_sys_cygwin32 = yes || test $g77_cv_sys_mingw32 = yes; then
   AC_MSG_RESULT(no)
 else
   if test $is_unix = yes; then
index 1317008cb734aec1ed0cd8d90e23a52b60b7534e..ee2a0ee6bf5aaa5d33f15b118e4777ddc1e9d93b 100644 (file)
@@ -60,7 +60,7 @@ s_paus(char *s, ftnlen n)
        if( isatty(fileno(stdin)) )
                s_1paus(stdin);
        else {
-#if (defined (MSDOS) && !defined (GO32)) || defined(__CYGWIN32__)
+#if (defined (MSDOS) && !defined (GO32)) || defined (_WIN32)
                FILE *fin;
                fin = fopen("con", "r");
                if (!fin) {
index cc5cab8b7bb2b698fec3879f9e201a2621c81c01..1c16545849468e014bb2c5681b503196f7637439 100644 (file)
@@ -19,7 +19,9 @@ extern "C" {
 extern int creat(const char*,int), open(const char*,int);
 #endif
 extern int close(int);
+#if !(defined(_WIN32) && !defined(__CYGWIN32__))
 extern int read(int,void*,size_t), write(int,void*,size_t);
+#endif
 extern int unlink(const char*);
 #ifndef _POSIX_SOURCE
 #ifndef NON_UNIX_STDIO