Hi, In recent Cygwin some header files (especially <windows.h>) define the preprocessor macros _WIN32 and WIN32. This wasn't the case a few years ago.
We have used WIN32 as meaning "use the Win32 API". But this is not what we want to do on Cygwin - except in very few cases. So I'm changing some code to use (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ instead of defined _WIN32 || defined __WIN32__ when using native Win32 API. In other places I used to define WIN32 as an abbreviation of defined _WIN32 || defined __WIN32__ Now I'm renaming that to WIN32_NATIVE. Bruno 2006-05-17 Bruno Haible <[EMAIL PROTECTED]> Cygwin portability. * classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'. *** classpath.c 14 May 2005 06:03:57 -0000 1.3 --- classpath.c 17 May 2006 13:14:14 -0000 *************** *** 1,5 **** /* Java CLASSPATH handling. ! Copyright (C) 2001-2003 Free Software Foundation, Inc. Written by Bruno Haible <[EMAIL PROTECTED]>, 2001. This program is free software; you can redistribute it and/or modify --- 1,5 ---- /* Java CLASSPATH handling. ! Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc. Written by Bruno Haible <[EMAIL PROTECTED]>, 2001. This program is free software; you can redistribute it and/or modify *************** *** 36,42 **** #endif /* Separator in PATH like lists of pathnames. */ ! #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__ /* Win32, OS/2, DOS */ # define PATH_SEPARATOR ';' #else --- 36,42 ---- #endif /* Separator in PATH like lists of pathnames. */ ! #if ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || defined __EMX__ || defined __DJGPP__ /* Win32, OS/2, DOS */ # define PATH_SEPARATOR ';' #else