]> granicus.if.org Git - postgresql/commitdiff
Don't include postgres.h in postgres_fe.h for cpluspluscheck.
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 18 Dec 2012 21:30:14 +0000 (16:30 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 18 Dec 2012 21:30:14 +0000 (16:30 -0500)
Error exposed by recent Assert changes.

Complaint from Peter Eisentraut.

src/tools/pginclude/cpluspluscheck

index 1f0fa47ba81eff2296f429ce131a82dbe90fe51d..b9ce51c22454e925bcf01f0fb17879d9ea1af7b1 100755 (executable)
@@ -25,7 +25,7 @@ for f in `find src/include src/interfaces/libpq/libpq-fe.h src/interfaces/libpq/
 do
        {
            echo ' extern "C" {'
-           echo '#include "postgres.h"'
+           test $f != "src/include/postgres_fe.h" && echo '#include "postgres.h"'
            echo "#include \"$f\""
            echo '};'
        } >$tmp/test.cpp