configure.in: Remove CYGWIN definition; we will use the
automatically defined __CYGWIN__ instead.
diff --git a/lib/ext2fs/ChangeLog b/lib/ext2fs/ChangeLog
index 8d79805..71fe43f 100644
--- a/lib/ext2fs/ChangeLog
+++ b/lib/ext2fs/ChangeLog
@@ -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()
diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c
index aa9ff14..ae498da 100644
--- a/lib/ext2fs/unix_io.c
+++ b/lib/ext2fs/unix_io.c
@@ -94,7 +94,7 @@
unix_read_blk,
unix_write_blk,
unix_flush,
-#ifdef CYGWIN
+#ifdef __CYGWIN__
0
#else
unix_write_byte
@@ -106,7 +106,7 @@
/*
* 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 @@
size, actual, retval);
return retval;
}
-#else /* CYGWIN */
+#else /* __CYGWIN__ */
/*
* Windows block devices only allow sector alignment IO in offset and size
*/