We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent0fe397f commit224f6e5Copy full SHA for 224f6e5
src/tools/pginclude/cpluspluscheck
@@ -17,11 +17,15 @@ trap 'rm -rf $tmp' 0 1 2 3 15
17
# regex/regerrs.h is not meant to be included standalone.
18
# parser/gram.h will be included by parser/gramparse.h.
19
# parser/kwlist.h is not meant to be included standalone.
20
+# pg_trace.h and utils/probes.h can include sys/sdt.h from SystemTap,
21
+# which itself contains C++ code and so won't compile with a C++
22
+# compiler under extern "C" linkage.
23
24
forfin`find src/include src/interfaces/libpq/libpq-fe.h src/interfaces/libpq/libpq-events.h -name'*.h' -print| \
25
grep -v -e ^src/include/port/ \
26
-e ^src/include/rusagestub.h -e ^src/include/regex/regerrs.h \
--e ^src/include/parser/gram.h -e ^src/include/parser/kwlist.h`
27
+-e ^src/include/parser/gram.h -e ^src/include/parser/kwlist.h \
28
+-e ^src/include/pg_trace.h -e ^src/include/utils/probes.h`
29
do
30
{
31
echo' extern "C" {'