Re: assume availability of "inline" keyword - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: assume availability of "inline" keyword
Date
Msg-id aZdqb9df6oqsUq9m@nathan
Whole thread Raw
In response to Re: assume availability of "inline" keyword  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: assume availability of "inline" keyword
List 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



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: pg_plan_advice
Next
From: Andrew Dunstan
Date:
Subject: Re: Non-text mode for pg_dumpall