Skip to content

Commit

Permalink
[mlirc] Add missing extern C (#95829)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jpienaar authored Jun 17, 2024
1 parent 8756043 commit c9549e1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mlir/include/mlir-c/Rewrite.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
#include "mlir-c/Support.h"
#include "mlir/Config/mlir-config.h"

#ifdef __cplusplus
extern "C" {
#endif

//===----------------------------------------------------------------------===//
/// Opaque type declarations (see mlir-c/IR.h for more details).
//===----------------------------------------------------------------------===//
Expand Down Expand Up @@ -57,4 +61,8 @@ mlirRewritePatternSetFromPDLPatternModule(MlirPDLPatternModule op);

#undef DEFINE_C_API_STRUCT

#ifdef __cplusplus
}
#endif

#endif // MLIR_C_REWRITE_H

0 comments on commit c9549e1

Please sign in to comment.