[libdvdcss-devel] [PATCH 2/2] build: Drop unnecessary local SYS_CYGWIN config.h #define

Diego Biurrun diego at biurrun.de
Sun Feb 10 12:59:17 CET 2013


__CYGWIN__ is always available and can be used instead.

Signed-off-by: Diego Biurrun <diego at biurrun.de>
---
 configure.ac |    8 --------
 src/ioctl.h  |    2 +-
 2 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/configure.ac b/configure.ac
index 326db26..9980ef8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,14 +26,6 @@ case x"${target_os}" in
   xdarwin*)
     CFLAGS="${CFLAGS} -no-cpp-precomp"
     ;;
-  x*cygwin*)
-    dnl Check if we are using the mno-cygwin mode in which case we are
-    dnl actually dealing with a mingw32 compiler.
-    AC_EGREP_CPP(yes, [#ifndef WIN32
-                       yes
-                       #endif],
-                 AC_DEFINE(SYS_CYGWIN, 1, Have a Cygwin system.))
-    ;;
   xbeos*)
     AC_DEFINE(SYS_BEOS, 1, Have a BeOS system.)
     ;;
diff --git a/src/ioctl.h b/src/ioctl.h
index bc423b8..19d7550 100644
--- a/src/ioctl.h
+++ b/src/ioctl.h
@@ -24,7 +24,7 @@
 #ifndef DVDCSS_IOCTL_H
 #define DVDCSS_IOCTL_H
 
-#if defined( WIN32 ) || defined( SYS_CYGWIN )
+#if defined( WIN32 ) || defined( __CYGWIN__ )
 #   define WIN32_DVD_API
 #endif
 
-- 
1.7.9.5



More information about the libdvdcss-devel mailing list