automatically defined __CYGWIN__ instead.
+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
cygwin)
CYGWIN_CMT=
UNIX_CMT="#"
- cat >> confdefs.h <<\EOF
-#define WIN32 1
-EOF
-
;;
esac
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
cygwin)
CYGWIN_CMT=
UNIX_CMT="#"
- AC_DEFINE(CYGWIN)
;;
esac
AC_SUBST(LINUX_CMT)
+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()
unix_read_blk,
unix_write_blk,
unix_flush,
-#ifdef CYGWIN
+#ifdef __CYGWIN__
0
#else
unix_write_byte
/*
* 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,
size, actual, retval);
return retval;
}
-#else /* CYGWIN */
+#else /* __CYGWIN__ */
/*
* Windows block devices only allow sector alignment IO in offset and size
*/