1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Allow more include files to be compiled in their own by adding missing

include dependencies.

Modify pgcompinclude to skip a common fcinfo error.
This commit is contained in:
Bruce Momjian
2011-08-27 11:05:33 -04:00
parent d010391ac8
commit 4bd7333b14
8 changed files with 11 additions and 2 deletions

View File

@ -14,6 +14,9 @@ do
sed 's/->[a-zA-Z0-9_\.]*//g' "$FILE" >/tmp/$$a
echo "#include \"postgres.h\"" >/tmp/$$.c
echo "#include \"/tmp/$$a\"" >>/tmp/$$.c
# supress fcinfo errors
echo "#undef PG_GETARG_DATUM" >>/tmp/$$.c
echo "#define PG_GETARG_DATUM(n)" >>/tmp/$$.c
echo "void include_test(void);" >>/tmp/$$.c
echo "void include_test() {" >>/tmp/$$.c
pgdefine "$FILE" >>/tmp/$$.c