[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: predefined macros for native Windows
From: |
Bruno Haible |
Subject: |
Re: predefined macros for native Windows |
Date: |
Fri, 04 May 2018 02:22:17 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-119-generic; KDE/5.18.0; x86_64; ; ) |
Gisle Vanem wrote:
> > When we began gnulib development, Borland C++ was still a reasonable
> > portability
> > target to keep in mind. Probably this is no longer the case? Can you check
> > all
> > "reasonable" C compilers for Windows whether they define '_WIN32'?
>
> I checked OpenWatcom 2.0 and Pelles-C. They both have '_WIN32', but
> not '__WIN32__'. The rest (MSVC, MinGW) has it off-course.
Thanks for these investigations. So, it should be safe to test only
'_WIN32' nowadays. Done through the attached patch.
0001-Simplify-code.-Drop-support-for-Borland-C-on-Windows.patch
Description: Text Data