Skip to content

Commit 3b30533

Browse files
authored
Replace MLIR_CAPI_EXPORTED for extern "C" (#228)
1 parent ede6274 commit 3b30533

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deps/ReactantExtra/API.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ using namespace xla;
6767

6868
// MLIR C-API extras
6969
#pragma region MLIR Extra
70-
MLIR_CAPI_EXPORTED MlirAttribute mlirComplexAttrDoubleGet(MlirContext ctx, MlirType type, double real, double imag) {
70+
extern "C" MlirAttribute mlirComplexAttrDoubleGet(MlirContext ctx, MlirType type, double real, double imag) {
7171
return wrap(complex::NumberAttr::get(cast<ComplexType>(unwrap(type)), real, imag));
7272
}
7373

74-
MLIR_CAPI_EXPORTED MlirAttribute mlirComplexAttrDoubleGetChecked(MlirLocation loc, MlirType type, double real, double imag) {
74+
extern "C" MlirAttribute mlirComplexAttrDoubleGetChecked(MlirLocation loc, MlirType type, double real, double imag) {
7575
return wrap(complex::NumberAttr::getChecked(unwrap(loc), cast<ComplexType>(unwrap(type)), real, imag));
7676
}
7777

7878
// TODO mlirComplexAttrGetValue
79-
// TODO MLIR_CAPI_EXPORTED MlirTypeID mlirComplexAttrGetTypeID(void) { return wrap(complex::NumberAttr::getTypeID()); }
79+
// TODO extern "C" MlirTypeID mlirComplexAttrGetTypeID(void) { return wrap(complex::NumberAttr::getTypeID()); }
8080
#pragma endregion
8181

8282
// int google::protobuf::io::CodedInputStream::default_recursion_limit_ = 100;

0 commit comments

Comments
 (0)