[HN Gopher] Pre-defined C/C++ Compiler Macros
___________________________________________________________________
Pre-defined C/C++ Compiler Macros
Author : st_goliath
Score : 13 points
Date : 2022-12-20 17:31 UTC (5 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| Night_Thastus wrote:
| This may be missing a couple under the Windows category, such as
| _WINDOWS and WIN32 (no underscores).
|
| Buried in some code I wrote is this, because of compatibility
| nightmares:
|
| #if defined(__WIN32__) || defined(_WIN32) || defined(_WINDOWS) ||
| defined(WIN32)
| mdaniel wrote:
| Well, they accept contributions, but are you sure those are
| predefined, and not courtesy of some system include?
| Night_Thastus wrote:
| What's the difference between those two?
| wahern wrote:
| For anyone as confused as I was, this seems to be a fork of the
| original database at https://sourceforge.net/p/predef/wiki/Home/
| The Sourceforge page now includes a link to this new repository.
___________________________________________________________________
(page generated 2022-12-20 23:02 UTC)