Skip to content

Commit 144ebdd

Browse files
jpienaarnirvedhmeshram
authored andcommitted
[mlirc] Add missing extern C (llvm#95829)
This was missing being wrapped in extern C block. Don't know why didn't fail elsewhere, but failed on Windows build while linking Python libs. Signed-off-by: Jacques Pienaar <jpienaar@google.com>
1 parent 27ac46e commit 144ebdd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mlir/include/mlir-c/Rewrite.h

+8
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
#include "mlir-c/Support.h"
2020
#include "mlir/Config/mlir-config.h"
2121

22+
#ifdef __cplusplus
23+
extern "C" {
24+
#endif
25+
2226
//===----------------------------------------------------------------------===//
2327
/// Opaque type declarations (see mlir-c/IR.h for more details).
2428
//===----------------------------------------------------------------------===//
@@ -57,4 +61,8 @@ mlirRewritePatternSetFromPDLPatternModule(MlirPDLPatternModule op);
5761

5862
#undef DEFINE_C_API_STRUCT
5963

64+
#ifdef __cplusplus
65+
}
66+
#endif
67+
6068
#endif // MLIR_C_REWRITE_H

0 commit comments

Comments
 (0)