From: Carlo B. <car...@li...> - 2012-06-05 09:29:35
|
# HG changeset patch # User Carlo Bramini <car...@li...> # Date 1338887449 -10800 # Node ID 90d11c710feb698f4e02bf226dbe4edba215062f # Branch default # Parent 26c086d939445425254d254a03c40e0705b7c568 Fix building with cygwin CYGWIN is a full POSIX environment, it does not need to include windows.h (it even causes an error if you try). diff --git a/src/xine-utils/utils.c b/src/xine-utils/utils.c --- a/src/xine-utils/utils.c +++ b/src/xine-utils/utils.c @@ -42,6 +42,7 @@ #include <time.h> #include <unistd.h> #include <fcntl.h> +#include <ctype.h> #if HAVE_EXECINFO_H #include <execinfo.h> @@ -55,8 +56,7 @@ #include <langinfo.h> #endif -#if defined(__CYGWIN__) || defined(WIN32) -#include <ctype.h> +#if defined(WIN32) #include <windows.h> #endif |