Re: [GENERAL] C++ port of Postgres

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: dandl <david(at)andl(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [GENERAL] C++ port of Postgres
Date: 2016-08-17 05:16:24
Message-ID: CAMsr+YFKuY+H+DZ6Ysx2PPaJAp4gCs5fZivrj3y4HNr+OKUdKw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On 17 August 2016 at 09:49, Andres Freund <andres(at)anarazel(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Venkata B Nagothi 2016-08-17 05:35:56 Re: Question about performance - Postgres 9.5
Previous Message Venkata B Nagothi 2016-08-17 04:37:32 Re: Running pg_dump from a slave server

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2016-08-17 05:27:18 Re: Why we lost Uber as a user
Previous Message Venkata B Nagothi 2016-08-17 04:33:49 Re: patch proposal