diff options
author | Bruce Momjian <bruce@momjian.us> | 2011-09-07 12:59:17 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2011-09-07 12:59:17 -0400 |
commit | f19593754a1b9293b098975fc43263125a40a4c3 (patch) | |
tree | e6f62150781f13fff094ad58259316616c6d43fa | |
parent | f81fb4f690355bc88fee69624103956fb4576fe5 (diff) | |
download | postgresql-f19593754a1b9293b098975fc43263125a40a4c3.tar.gz postgresql-f19593754a1b9293b098975fc43263125a40a4c3.zip |
Have pgrminclude skip files that use CppAsString2 because CppAsString2
will expaned undefined identifiers.
-rwxr-xr-x | src/tools/pginclude/pgrminclude | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/pginclude/pgrminclude b/src/tools/pginclude/pgrminclude index 2ac9c78880f..d60519a0371 100755 --- a/src/tools/pginclude/pgrminclude +++ b/src/tools/pginclude/pgrminclude @@ -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 |