Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wUqkz-001UTt-0w for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Jun 2026 18:56:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wUqky-002vu2-0k for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Jun 2026 18:56:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wUqkx-002vtu-32 for pgsql-hackers@lists.postgresql.org; Wed, 03 Jun 2026 18:55:59 +0000 Received: from mail-oo1-xc35.google.com ([2607:f8b0:4864:20::c35]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wUqkv-000000016TY-1UEm for pgsql-hackers@lists.postgresql.org; Wed, 03 Jun 2026 18:55:59 +0000 Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-69e505c7e22so248690eaf.3 for ; Wed, 03 Jun 2026 11:55:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780512955; x=1781117755; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=OK+yhfyxMJ4ppy9HowS4MPXbTuvCVFljFT2Ms6gNR+U=; b=h8Yu/kcdXNvsRmmzMQxPIo0E3l0aQGNTTUYxsZLzC/vlxQERmbMmR/QrNC38P95eBv 14R5K/Iwiwvxh1vW+T3rF8zwhmfzWKqpQdI4AHSUbo7QEAocHL5mh/jumzoivtnqxBNL nAqktq4KIlOAfVHFj7m/Yrt0tSWHZxa8E3ZqWKZMsqxq3jnd/AH0K4k6M53kcRqDY8ox GatmclbNkYAMTE5LRc3/6uAUWwetBiLdgfX5VA4R+vrY0/79Hux9cjQu4lfQ8PL+qpB+ 0tLjvWgmTeC3r5QgIu+f45iPQV4jRQDsKaUn/YrRWHo9ZG/gQM0yAoVnsIA1Uqemc4Qu Lyqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780512955; x=1781117755; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OK+yhfyxMJ4ppy9HowS4MPXbTuvCVFljFT2Ms6gNR+U=; b=esqNVm04AkgpupYWWuGUVwuwFGTSU7qA06ez4SZ+HjzNZhIco+Rc/FfK5qm5itx4fv MQDdQMX/GI4Xcm57Id6Z3kmbPK5LxCmXtDIZkey71VwJOsUfrI16iXPZYUPy+8xm5pIo hP69hYOP02MZp6/SHEiKMUfQvriaT7gQGq9iROWnxurVz2rgeS7E/73Sva/yu2dS3sy6 nRygQGkt5nnrVlhiLx1mRMQvOJ4vMvoWUrv0JLyB0IEMWJ2vOx2QXjokz5R5ExHNztcR AyJDzwmFmmirgHoNCHHwAaCsJaBbssT70tWpmAhG87HPNKesf8503/ErR/TUmR2Z7uRb bZKg== X-Forwarded-Encrypted: i=1; AFNElJ+evSz9/k1kaRYDovMpNVZYs87NS2VpDleX21V21FRjzxWg1bD8Kx7Sc/cMtPj0uyo4dZEICJ3Wh7NR1NhU@lists.postgresql.org X-Gm-Message-State: AOJu0Yxo79Z0lpJP/kNRRfww3d1vMJN1v/EA6NwNXUzWiPvIARJRZ69e vTojJKG1ERzOc8q0qPR+mRPIidvEtqbEyjoKuxZ5oQkB9VZg6O+IyH3b X-Gm-Gg: Acq92OHp8+R6qC4h5oKhSc+aFwibkjOkkVZ+HpCPSO6dcEYVYwU3QDOo4cxM2bmEurG biWLTl/5jTlNIoL0BI+XITYX+HHQFgwzoVXEViExuwa33NM8weWKYZU6zMW+BhePMGS1Spmz+eL HK6AMdt9HQSaWLLbdtAMhDGzFtuXOOCHfSgvAJL3Ma9Ut/n5Ew25Y9icJmFsiApD3DFMduCJXrF Sh/XBVCTAamJPWDm8FxGWpmkW9mYBnlq+uwGOLOhR1b19PAcxmcrczbfuOVjSqvD1kT3XXmCkEM 0LAHZMtk0cefxqzut5WExJjaW324DAfmzbsYSt/8vc7lpXcWdgpPxlmQDnLExXEIGM895ivfsrL jKQrymVShFFGEtNPoVmVWRuV+IGrxdpy+zB/7p59eAhrBJylD/6o1UqXVbVe5H7AqhNASRPqDsf 7iGihluLVIXf5uKuFRcjzUe9p7u3ta5nuSqMVBXLCQBJkcTSRRRR2Q6cIRO4ft/7+kZUiVQQwiB dNNFOQiPvS25tw3VH2Z8aL6ot1V3JIl X-Received: by 2002:a05:6820:1c96:b0:69d:8f47:f66e with SMTP id 006d021491bc7-69e47f2dd5fmr2775148eaf.35.1780512955009; Wed, 03 Jun 2026 11:55:55 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-69e4623cc02sm2131419eaf.4.2026.06.03.11.55.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2026 11:55:54 -0700 (PDT) Date: Wed, 3 Jun 2026 13:55:52 -0500 From: Nathan Bossart To: Peter Eisentraut Cc: Tom Lane , pgsql-hackers@lists.postgresql.org Subject: Re: Does MSVC predefine __x86_64__ on 64-bit Intel? Message-ID: References: <3035145.1780503430@sss.pgh.pa.us> <2d70e27e-e9e0-417f-94fa-8ecc07c6e578@eisentraut.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2d70e27e-e9e0-417f-94fa-8ecc07c6e578@eisentraut.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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