Re: assume availability of "inline" keyword

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: assume availability of "inline" keyword
Date: 2026-02-19 19:54:23
Message-ID: aZdqb9df6oqsUq9m@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Feb 19, 2026 at 02:19:33PM -0500, Tom Lane wrote:
> All those usages are guarded by
>
> #if defined(__GNUC__) || defined(__INTEL_COMPILER)
>
> so we are only concerned with gcc-alikes, which reduces the risks
> of trouble. However, I have a vague recollection that it is/was
> possible to put gcc in a mode where it only takes __inline__
> not inline. This is likely something you get from -std=c90 or
> thereabouts, which would be irrelevant now. But I'd suggest
> checking it's okay under -std=c11 (not gnu11), just to be sure.

Right. I checked a couple of compilers and none seemed to mind this patch
with -std=c11.

--
nathan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2026-02-19 20:00:03 Re: Non-text mode for pg_dumpall
Previous Message Robert Haas 2026-02-19 19:46:38 Re: pg_plan_advice