]> granicus.if.org Git - postgresql/commitdiff
Have pgrminclude skip files that use CppAsString2 because CppAsString2
authorBruce Momjian <bruce@momjian.us>
Wed, 7 Sep 2011 16:59:17 +0000 (12:59 -0400)
committerBruce Momjian <bruce@momjian.us>
Wed, 7 Sep 2011 16:59:17 +0000 (12:59 -0400)
will expaned undefined identifiers.

src/tools/pginclude/pgrminclude

index 2ac9c78880f4e68d3e81c048cebcec0415544492..d60519a03714ce84eacd726d78263c01f31e4e1a 100755 (executable)
@@ -43,6 +43,8 @@ compile_file() {
        [ "$INCLUDE" = "postgres_fe.h" ] && continue
        [ "$INCLUDE" = "pg_config.h" ] && continue
        [ "$INCLUDE" = "c.h" ] && continue
+       # CppAsString2 will expand undefined identifiers, so skip files that use it
+       grep -q '\<CppAsString2\>' "$FILE" && continue
 
        # preserve configure-specific includes
        # these includes are surrounded by #ifdef's