Re: [GENERAL] C++ port of Postgres

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: [GENERAL] C++ port of Postgres
Дата
Msg-id CAMsr+YFKuY+H+DZ6Ysx2PPaJAp4gCs5fZivrj3y4HNr+OKUdKw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] C++ port of Postgres  ('Andres Freund' <andres@anarazel.de>)
Ответы Re: [GENERAL] C++ port of Postgres  (Serge Rielau <srielau@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Venkata B Nagothi
Дата:
Сообщение: Re: patch proposal
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Why we lost Uber as a user