[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MINGW build
From: |
John W. Eaton |
Subject: |
Re: MINGW build |
Date: |
Thu, 10 Oct 2002 21:22:03 -0500 |
On 10-Oct-2002, Mumit Khan <address@hidden> 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 <windows.h>, 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