Re: Linking PostgreSQL as a C++ program

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Linking PostgreSQL as a C++ program
Дата
Msg-id 20180129050257.GC8173@paquier.xyz
обсуждение исходный текст
Ответ на Linking PostgreSQL as a C++ program  (Craig Ringer <craig@2ndquadrant.com>)
Ответы Re: Linking PostgreSQL as a C++ program
Список pgsql-hackers
On Mon, Jan 29, 2018 at 05:46:54PM +1300, Craig Ringer wrote:
> extern "C" {
> #include "postgres.h"
> }

Don't you need __cplusplus as well? More or less that:

#ifdef __cplusplus
extern "C" {
#endif
#include "postgres.h"
#ifdef __cplusplus
}
#endif
--
Michael

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: Failed test 'psql query died successfully after SIGQUIT'
Следующее
От: Masahiko Sawada
Дата:
Сообщение: Re: Temporary tables prevent autovacuum, leading to XID wraparound