Temporary header file '/tmp/E4Bf2MYaQK/dump1.h' with the following content will be compiled to create GCC translation unit dump: // add defines #define __STDC_VERSION__ 201710L #define _GXX_NULLPTR_T #define CLUTTER_ENABLE_COMPOSITOR_API 1 #define _REGEX_NELTS(n) #define _Atomic #define PACKED #define getaddrinfo_a(a,b,c,d) // add includes #include "/usr/include/pcp/archive.h" The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/E4Bf2MYaQK/dump1.h" In file included from /tmp/E4Bf2MYaQK/dump1.h:12: /usr/include/pcp/archive.h:32:1: error: ‘PCP_CALL’ does not name a type 32 | PCP_CALL extern int pmaGetLog(__pmArchCtl *, int, __int32_t **); | ^~~~~~~~ /usr/include/pcp/archive.h:33:1: error: ‘PCP_CALL’ does not name a type 33 | PCP_CALL extern int pmaPutLog(__pmFILE *, __int32_t *); | ^~~~~~~~ /usr/include/pcp/archive.h:34:1: error: ‘PCP_CALL’ does not name a type 34 | PCP_CALL extern int pmaRewriteData(__pmLogCtl *, __pmLogCtl *, __int32_t **); | ^~~~~~~~ /usr/include/pcp/archive.h:35:1: error: ‘PCP_CALL’ does not name a type 35 | PCP_CALL extern int pmaRewriteMeta(__pmLogCtl *, __pmLogCtl *, __int32_t **); | ^~~~~~~~ /usr/include/pcp/archive.h:38:1: error: ‘PCP_CALL’ does not name a type 38 | PCP_CALL extern int pmaSameInDom(__pmLogInDom *, __pmLogInDom *); | ^~~~~~~~ /usr/include/pcp/archive.h:39:1: error: ‘PCP_CALL’ does not name a type 39 | PCP_CALL extern void pmaSortInDom(__pmLogInDom *); | ^~~~~~~~ /usr/include/pcp/archive.h:40:1: error: ‘PCP_CALL’ does not name a type 40 | PCP_CALL extern int pmaDeltaInDom(__pmLogInDom *, __pmLogInDom *, __pmLogInDom *); | ^~~~~~~~ /usr/include/pcp/archive.h:41:1: error: ‘PCP_CALL’ does not name a type 41 | PCP_CALL extern __pmLogInDom *pmaUndeltaInDom(__pmLogCtl *, __int32_t *); | ^~~~~~~~ /usr/include/pcp/archive.h:42:1: error: ‘PCP_CALL’ does not name a type 42 | PCP_CALL extern int pmaTryDeltaInDom(__pmLogCtl *, __int32_t **, __pmLogInDom *); | ^~~~~~~~