Re: Meson bug in detection of 64 atomics

Thomas Munro <thomas.munro@gmail.com>

From: Thomas Munro <thomas.munro@gmail.com>
To: Yura Sokolov <y.sokolov@postgrespro.ru>
Cc: pgsql-hackers@postgresql.org
Date: 2025-01-07T18:21:42Z
Lists: pgsql-hackers
On Wed, Jan 8, 2025 at 2:40 AM Yura Sokolov <y.sokolov@postgrespro.ru> wrote:
> I see: Thomas Munro just missed this place in commit on 2024.12.04
>
> Use <stdint.h> and <inttypes.h> for c.h integers.
>
> https://github.com/postgres/postgres/commit/962da900ac8f0927f1af2fd811ca67fa163c873a
>
> Вт, 7 янв. 2025 г. в 01:29, Юрий Соколов <y.sokolov@postgrespro.ru>:
>> I found meson fails to detect 64 GCC atomics. Looks like check was drafted but never synced with “configure”.
>>
>> Patch that syncs meson check to configure’s one attached. It fixes the issue at least on my computer (Mac M1).

Oops.  Right.  Pushed, thanks!



Commits

  1. Fix meson detection of a couple of 64 bit builtins.

  2. Use <stdint.h> and <inttypes.h> for c.h integers.