From octave-maintainers-request at bevo dot che dot wisc dot edu Thu Oct 10 21:24:42 2002 Subject: Re: MINGW build From: "John W. Eaton" To: Mumit Khan Cc: "John W. Eaton" , Paul Kienzle , Date: Thu, 10 Oct 2002 21:22:03 -0500 On 10-Oct-2002, Mumit Khan wrote: | My mistake. Cygwin GCC is now "unix-only" by default, and will not define | _WIN32 etc without the -mwin32 option. Something I had completely | forgotten about, and the fact that my configure scripts automatically adds | -mwin32 if appropriate fed that illusion. OK, for now I'm just using whatever combination of __WIN32__ and __CYGWIN__ that seems appropriate for the features I want. But maybe we should define some more specific preprocessor variables in config.h based on these symbols. Something like // Define if the system has C:\foo\bar file names #if defined (__WIN32__) || defined (__CYGWIN__) #define HAVE_WINDOWS_FILESYSTEM 1 #endif // Define if we expect to have , Sleep, etc. #if defined (__WIN32__) || ! (defined (__CYGWIN__) || ...) #define USE_WINDOWS_API 1 #endif might be better since these variable names describe features rather than system names. jwe