Cannot include headers in C++ code
libsysprof headers use C99 restrict
, which prevents #include
ing them in C++ code:
../src/libsysprof/sysprof-document-ctrset.h:45:85: error: ‘restrict’ was not declared in this scope; did you mean ‘struct’?
45 | guint8 value[restrict 8]);
| ^~~~~~~~
| struct
(I found out about this because Debian is using ABI Compliance Checker to assess whether various libraries would break ABI or not on 32-bit architectures when compiled with 64-bit off_t and time_t, and it seems that always compiles as C++.)
Edited by Simon McVittie