From 28677468c56888b18c44d71a62903d23e5c294cf Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Tue, 19 May 2009 23:25:15 +0100 Subject: Cygwin/X: Build fix Commit c59dd27ecb1751f0b097046b2f892028e5a10a3e replaces __CYGWIN__ with WIN32 in a preprocessor check, as the code is appropriate for both Cygwin and Mingw. But this isn't quite the right was to do this. Being a Win32 platform is Cygwin's secret shame, and WIN32 isn't actually defined to avoid turning on code specific to native-Win API ports (See http://www.cygwin.com/faq/faq.programming.html#faq.programming.preprocessor) Yes, this probably means WIN32 could bereplaced by __MINGW32__ everywhere in the X sources... --- src/Initialize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Initialize.c b/src/Initialize.c index d2af1b1..f2c9c68 100644 --- a/src/Initialize.c +++ b/src/Initialize.c @@ -188,7 +188,7 @@ void _XtInherit(void) #endif -#ifdef WIN32 +#if defined (WIN32) || defined(__CYGWIN__) /* * The Symbol _XtInherit is used in two different manners. * First it could be used as a generic function and second -- cgit v1.2.3