Modify pgrminclude to include all code, even in #if blocks. Process

.h include files before .c files.

Mark some includes as needed to be ignored by pgrminclude.
This commit is contained in:
Bruce Momjian 2011-08-26 18:14:35 -04:00
parent c6e9da17a1
commit f8e41abd8a

View File

@ -70,6 +70,8 @@ do
fi fi
echo "}" >>/tmp/$$.c echo "}" >>/tmp/$$.c
# Use -O1 to get warnings only generated by optimization,
# but -O2 is too slow.
cc -fsyntax-only -Werror -Wall -Wmissing-prototypes \ cc -fsyntax-only -Werror -Wall -Wmissing-prototypes \
-Wmissing-declarations -I/pg/include -I/pg/backend \ -Wmissing-declarations -I/pg/include -I/pg/backend \
-I/pg/interfaces/libpq -I`dirname $FILE` $CFLAGS -O1 -c /tmp/$$.c \ -I/pg/interfaces/libpq -I`dirname $FILE` $CFLAGS -O1 -c /tmp/$$.c \