Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEF65-0006bg-1l for pgsql-bugs@arkaria.postgresql.org; Sun, 30 Jan 2022 18:38:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nEF63-00049C-LE for pgsql-bugs@arkaria.postgresql.org; Sun, 30 Jan 2022 18:38:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEF63-000492-D1 for pgsql-bugs@lists.postgresql.org; Sun, 30 Jan 2022 18:38:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEF61-0004tm-9W for pgsql-bugs@lists.postgresql.org; Sun, 30 Jan 2022 18:38:42 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 20UIceZZ324554; Sun, 30 Jan 2022 13:38:40 -0500 From: Tom Lane To: "Ian R. Campbell" cc: PostgreSQL mailing lists Subject: Re: Missing include in float.h In-reply-to: References: Comments: In-reply-to "Ian R. Campbell" message dated "Sun, 30 Jan 2022 18:32:58 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <324552.1643567920.1@sss.pgh.pa.us> Date: Sun, 30 Jan 2022 13:38:40 -0500 Message-ID: <324553.1643567920@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Ian R. Campbell" writes: > In PG 14, the source file "float.h" has one include: > > It is missing "c.h", which contains the definitions for PGDLLIMPORT, > float4, float8, etc. This is standard practice in our header files: they assume that the calling .c file has already included c.h, postgres.h, or postgres_fe.h, as appropriate. There are some portability hacks in c.h that don't work if any other header is included first, so there would be little value in trying to include it via other methods. regards, tom lane