diff --git a/host/include/interface/capture.h b/host/include/interface/capture.h index b7fdd38b..4db37f02 100644 --- a/host/include/interface/capture.h +++ b/host/include/interface/capture.h @@ -22,9 +22,16 @@ #include #include -#include "common/framebuffer.h" #include "common/KVMFR.h" +#ifdef __cplusplus +/* using common/framebuffer.h breaks compatibillity with C++ due to it's usage + * of stdatomic.h, so we need to forward declare the structure here */ +typedef struct stFrameBuffer FrameBuffer; +#else +#include "common/framebuffer.h" +#endif + typedef enum CaptureResult { CAPTURE_RESULT_OK ,