================ @@ -57,4 +61,8 @@ mlirRewritePatternSetFromPDLPatternModule(MlirPDLPatternModule op); #undef DEFINE_C_API_STRUCT +#ifdef __cplusplus +} +#endif ---------------- joker-eph wrote: Is any of these covered by C unit-tests? https://github.com/llvm/llvm-project/pull/95829