Whamcloud - gitweb
configure.in: Remove CYGWIN definition; we will use the
authorTheodore Ts'o <tytso@mit.edu>
Fri, 18 Apr 2003 11:22:01 +0000 (07:22 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 18 Apr 2003 11:22:01 +0000 (07:22 -0400)
automatically defined __CYGWIN__ instead.

ChangeLog
configure
configure.in
lib/ext2fs/ChangeLog
lib/ext2fs/unix_io.c

index 4e8ed33..71b0f08 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-18  Theodore Ts'o  <tytso@mit.edu>
+
+       * configure.in: Remove CYGWIN definition; we will use the
+               automatically defined __CYGWIN__ instead.
+
 2003-03-22  Theodore Ts'o  <tytso@mit.edu>
 
        * configure.in: Add E2FSPROGS_DAY expansion.  Add
index 9ebc5a1..708ef3e 100644 (file)
--- a/configure
+++ b/configure
@@ -4958,10 +4958,6 @@ linux*)
 cygwin)
        CYGWIN_CMT=
        UNIX_CMT="#"
-       cat >> confdefs.h <<\EOF
-#define WIN32 1
-EOF
-
        ;;
 esac
 
@@ -5009,20 +5005,20 @@ fi
 
 
 echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
-echo "configure:5013: checking whether linker accepts -static" >&5
+echo "configure:5009: checking whether linker accepts -static" >&5
 if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
 cat > conftest.$ac_ext <<EOF
-#line 5019 "configure"
+#line 5015 "configure"
 #include "confdefs.h"
 #include <stdio.h>
 int main() {
 fflush(stdout);
 ; return 0; }
 EOF
-if { (eval echo configure:5026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   ac_cv_e2fsprogs_use_static=yes
 else
index 01e8290..6f22d55 100644 (file)
@@ -689,7 +689,6 @@ linux*)
 cygwin)
        CYGWIN_CMT=
        UNIX_CMT="#"
-       AC_DEFINE(CYGWIN)
        ;;
 esac
 AC_SUBST(LINUX_CMT)
index 8d79805..71fe43f 100644 (file)
@@ -1,3 +1,7 @@
+2003-04-18  Theodore Ts'o  <tytso@mit.edu>
+
+       * unix_io.c: Use __CYGWIN__ instead of CYGWIN.
+
 2003-04-17  Theodore Ts'o  <tytso@mit.edu>
 
        * getsize.c: Add Cygwin/Windows version of ext2fs_get_device_size()
index aa9ff14..ae498da 100644 (file)
@@ -94,7 +94,7 @@ static struct struct_io_manager struct_unix_manager = {
        unix_read_blk,
        unix_write_blk,
        unix_flush,
-#ifdef CYGWIN
+#ifdef __CYGWIN__
        0
 #else
        unix_write_byte
@@ -106,7 +106,7 @@ io_manager unix_io_manager = &struct_unix_manager;
 /*
  * Here are the raw I/O functions
  */
-#ifndef CYGWIN
+#ifndef __CYGWIN__
 static errcode_t raw_read_blk(io_channel channel,
                              struct unix_private_data *data,
                              unsigned long block,
@@ -139,7 +139,7 @@ error_out:
                                               size, actual, retval);
        return retval;
 }
-#else /* CYGWIN */
+#else /* __CYGWIN__ */
 /*
  * Windows block devices only allow sector alignment IO in offset and size
  */