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

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Does MSVC predefine __x86_64__ on 64-bit Intel?
Date: 2026-06-03 18:55:52
Message-ID: aiB4uPTtsQfpdLA6@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jonathan S. Katz 2026-06-03 18:57:25 Re: PostgreSQL 19 Beta 1 release announcement draft
Previous Message Jacob Champion 2026-06-03 18:53:26 Re: Heads Up: cirrus-ci is shutting down June 1st