Re: Does MSVC predefine __x86_64__ on 64-bit Intel?

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers@lists.postgresql.org
Date: 2026-06-03T18:33:50Z
Lists: pgsql-hackers
On 03.06.26 18:17, Tom Lane wrote:
> Not being a Windows person, I can't easily answer these
> questions by experiment.  But I think they need answering
> (and then documenting).

This can be tested on https://godbolt.org/.  My testing there suggests 
that neither __x86_64__ nor __x86_64 are defined.




Commits

  1. Clean up inconsistencies in CPU-identification macros.