On 17 August 2016 at 09:49, Andres Freund <[email protected]> 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