diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2009-05-19 23:25:15 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2009-05-20 13:57:52 +0100 |
commit | 28677468c56888b18c44d71a62903d23e5c294cf (patch) | |
tree | c36a0877e1a21d5989e98d14eacfdab1353ca6de /src/Initialize.c | |
parent | 535f8c5324205b92c15e8755008c33a2766832c8 (diff) | |
download | xorg-lib-libXt-28677468c56888b18c44d71a62903d23e5c294cf.tar.gz |
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...
Diffstat (limited to 'src/Initialize.c')
-rw-r--r-- | src/Initialize.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |