Re: PostgreSQL does not compile on macOS SDK 15.0 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PostgreSQL does not compile on macOS SDK 15.0
Date
Msg-id 32849.1720118270@sss.pgh.pa.us
Whole thread Raw
In response to Re: PostgreSQL does not compile on macOS SDK 15.0  (Thomas Munro <thomas.munro@gmail.com>)
Responses Re: PostgreSQL does not compile on macOS SDK 15.0
List pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes:
> On Mon, Jul 1, 2024 at 2:06 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Yeah.  I'd do pg_regex_t in a minute except that it'd break existing
>> extensions using our facilities.  However, your mention of macrology
>> stirred an idea: could we have our regex/regex.h intentionally
>> #include the system regex.h and then do
>> #define regex_t pg_regex_t
>> ?

> Good idea.  Here's an attempt at that.

I think it might be cleaner to put the new #include and macro hacking
into regcustom.h, to show that it's our own hack and not part of the
"official" Spencer code.  OTOH, we do have to touch regex.h anyway
to change the #include guards, and it's not like there are not any
other PG-isms in there.  So I'm not 100% sold that that way would
be better --- what do you think?

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Improving PL/Tcl's error context reports
Next
From: Dean Rasheed
Date:
Subject: Re: Optimize numeric multiplication for one and two base-NBASE digit multiplicands.