summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2011-09-24 13:24:14 +0000
committerBruce Momjian2011-09-24 13:24:14 +0000
commit337c0b03614c45516f2c3ec956405713bb264d54 (patch)
tree1f62ea5a0c42c2d195b94735ce4f4b20bb622269
parent0126db2a469c7dbe540354f4ac6691a6c1e3b94e (diff)
Expand pgrminclude to exclude use of macros CppAsString and CppConcat.
-rwxr-xr-xsrc/tools/pginclude/pgrminclude4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/pginclude/pgrminclude b/src/tools/pginclude/pgrminclude
index d60519a037..7dc5f58d8b 100755
--- a/src/tools/pginclude/pgrminclude
+++ b/src/tools/pginclude/pgrminclude
@@ -43,8 +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
+ # Stringify macros will expand undefined identifiers, so skip files that use it
+ egrep -q '\<(CppAsString2?|CppConcat)\>' "$FILE" && continue
# preserve configure-specific includes
# these includes are surrounded by #ifdef's