Re: [GENERAL] C++ port of Postgres - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: [GENERAL] C++ port of Postgres
Date
Msg-id CAMsr+YFKuY+H+DZ6Ysx2PPaJAp4gCs5fZivrj3y4HNr+OKUdKw@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] C++ port of Postgres  ('Andres Freund' <andres@anarazel.de>)
Responses Re: [GENERAL] C++ port of Postgres
List pgsql-hackers
On 17 August 2016 at 09:49, Andres Freund <andres@anarazel.de> wrote:
 

You need to include the files surrounded by extern "C" { }.

I'd really like to adopt the convention used by many libraries etc of doing this automatically - detecting a c++ compiler in the preprocessor and wrapping in "extern "C"" .

Having the codebase c++-clean enough to compile with a c++ compiler seems to be the easiest way to maintain that, but means more "extern "C"" droppings in the .c files, not just the headers. Still, pretty ignoreable.

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

pgsql-hackers by date:

Previous
From: Venkata B Nagothi
Date:
Subject: Re: patch proposal
Next
From: Craig Ringer
Date:
Subject: Re: Why we lost Uber as a user