From mboxrd@z Thu Jan 1 00:00:00 1970 From: DJ Delorie To: gdb@sources.redhat.com Subject: Re: _WIN32? Date: Tue, 17 Apr 2001 17:45:00 -0000 Message-id: References: <3ADCBA75.3BCBE292@cygnus.com> X-SW-Source: 2001-04/msg00126.html Andrew Cagney writes: > __GO32__ djgpp I think DJGPP V1, also defined by DJGPP V2 for backwards compatibility. __DJGPP__ is the current recommended symbol. > _WIN32 These are the 'canonical' way of detecting a Windows native compiler (MSVC, MinGW, cygwin with -mno-cygwin). > __MSDOS__ DJGPP, Borland C, older MSC's, and other dos-hosted compilers. This is (was?) the canonical way of detecting any dos-hosted compiler (compiler-independent filesystem issues, for example)