This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: gcc ... -U_WIN32 ... may cause problems
- To: "gnu-win32 at cygnus dot com" <gnu-win32 at cygnus dot com>, "'MCzapski at openplus dot com dot au'" <MCzapski at openplus dot com dot au>
- Subject: RE: gcc ... -U_WIN32 ... may cause problems
- From: Sergey Okhapkin <sos at prospect dot com dot ru>
- Date: Fri, 28 Aug 1998 11:40:12 +0400
Michael Czapski wrote:
> as well). Since gcc under Cygwin32 does not pre-define "__unix__" or "__unix"
> or "unix", as is the case under Linux, and in the Cygwin32/EGCS/gcc environment
> _WIN32 is defined the same as in the MS VC++ environment I had to code
> #if defined(_WIN32) && !defined(__CYGWIN32__) in a number of places. This was
> required to ensure that Windows NT-specific service code is not compiled under
If you have some portability header file included in all sources, add to the beginning:
#ifdef __CYGWIN32__
#undef _WIN32
#endif
--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".