rfc: WIN32 vs _WIN32 and more

Jon Turney jon.turney at dronecode.org.uk
Mon May 20 19:09:04 UTC 2019


On 17/05/2019 21:00, Thomas Dickey wrote:
> On Fri, May 17, 2019 at 10:08:47AM +0200, walter harms wrote:
>> Hi list,
>> is there a common ground for using OS related defines ?
>> I was look at some libs and found some defines that
>> look pretty ancient. And some like
>> WIN32 vs _WIN32
> 
> however, they're distinct:
> 
> https://stackoverflow.com/questions/662084/whats-the-difference-between-the-win32-and-win32-defines-in-c


Yeah, it's a total mess.

IMHO, _WIN32 is the 'correct' thing to test on, since it's in the 
implementation reserved namespace (since it starts with an underscore).


More information about the xorg-devel mailing list