Re: Should contrib modules install .h files?
От | Tom Lane |
---|---|
Тема | Re: Should contrib modules install .h files? |
Дата | |
Msg-id | 27744.1533091472@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Should contrib modules install .h files? (Andrew Gierth <andrew@tao11.riddles.org.uk>) |
Ответы |
Re: Should contrib modules install .h files?
|
Список | pgsql-hackers |
Andrew Gierth <andrew@tao11.riddles.org.uk> writes: > "Peter" == Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes: > Peter> I'm missing some guidance what an extension using those headers > Peter> is supposed to do. How does it get the right -I options? > If your extension is relying on pg11+, or you have checked the pg > version when constructing the makefile, you can just do: > PG_CPPFLAGS += -I$(includedir_server)/extension/hstore > and #include "hstore.h" will work. I remain of the opinion that it'd be smarter to do PG_CPPFLAGS += -I$(includedir_server)/extension then #include "hstore/hstore.h" This way requires fewer -I options and is far more robust against header name conflicts. regards, tom lane
В списке pgsql-hackers по дате отправления: