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 parenta4d3a50 commit1275b88Copy full SHA for 1275b88
src/tools/pginclude/cpluspluscheck
@@ -18,12 +18,16 @@ trap 'rm -rf $tmp' 0 1 2 3 15
18
# regex/regerrs.h is not meant to be included standalone.
19
# parser/gram.h will be included by parser/gramparse.h.
20
# parser/kwlist.h is not meant to be included standalone.
21
+# pg_trace.h and utils/probes.h can include sys/sdt.h from SystemTap,
22
+# which itself contains C++ code and so won't compile with a C++
23
+# compiler under extern "C" linkage.
24
25
forfin`find src/include src/interfaces/libpq/libpq-fe.h src/interfaces/libpq/libpq-events.h -name'*.h' -print| \
26
grep -v -e ^src/include/port/ \
27
-e ^src/include/rusagestub.h -e ^src/include/regex/regerrs.h \
28
-e ^src/include/access/rmgrlist.h \
--e ^src/include/parser/gram.h -e ^src/include/parser/kwlist.h`
29
+-e ^src/include/parser/gram.h -e ^src/include/parser/kwlist.h \
30
+-e ^src/include/pg_trace.h -e ^src/include/utils/probes.h`
31
do
32
{
33
echo' extern "C" {'