Re: Does MSVC predefine __x86_64__ on 64-bit Intel?
Nathan Bossart <nathandbossart@gmail.com>
From: Nathan Bossart <nathandbossart@gmail.com>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers@lists.postgresql.org
Date: 2026-06-03T18:55:52Z
Lists: pgsql-hackers
On Wed, Jun 03, 2026 at 08:33:50PM +0200, Peter Eisentraut wrote: > 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. Some related threads: https://postgr.es/m/flat/afouZUH_eUkIj4i4%40nathan https://postgr.es/m/flat/CA%2BhUKGL8Hs-phHPugrWM%3D5dAkcT897rXyazYzLw-Szxnzgx-rA%40mail.gmail.com -- nathan
Commits
-
Clean up inconsistencies in CPU-identification macros.
- 2ef57e636fc9 master landed