Discussion:
[libdvdcss-devel] [PATCH 1/2] cygwin: Drop some obsolete POSIX int types fallbacks
Diego Biurrun
2013-02-10 11:59:16 UTC
Permalink
Signed-off-by: Diego Biurrun <***@biurrun.de>
---
src/common.h | 5 -----
1 file changed, 5 deletions(-)

diff --git a/src/common.h b/src/common.h
index 801b8c5..c9e8351 100644
--- a/src/common.h
+++ b/src/common.h
@@ -34,11 +34,6 @@
# include <stdint.h>
#elif defined( HAVE_INTTYPES_H )
# include <inttypes.h>
-#elif defined( SYS_CYGWIN )
-# include <sys/types.h>
- /* Cygwin only defines half of these... */
- typedef u_int8_t uint8_t;
- typedef u_int32_t uint32_t;
#else
/* Fallback types (very x86-centric, sorry) */
typedef unsigned char uint8_t;
--
1.7.9.5
Diego Biurrun
2013-02-10 11:59:17 UTC
Permalink
__CYGWIN__ is always available and can be used instead.

Signed-off-by: Diego Biurrun <***@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
Jean-Baptiste Kempf
2013-02-11 00:26:53 UTC
Permalink
On 10 Feb, Diego Biurrun wrote :

Applied.

Best regards,
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
Loading...