From f26abad001ac872293da6957c450bd0945926abe Mon Sep 17 00:00:00 2001 From: "Mayeul@Zama" Date: Fri, 4 Nov 2022 15:14:41 +0100 Subject: [PATCH] chore(compiler): fix return-type-c-linkage --- .../include/concretelang-c/Support/CompilerEngine.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/compiler/include/concretelang-c/Support/CompilerEngine.h b/compiler/include/concretelang-c/Support/CompilerEngine.h index c162c3cda..b730793de 100644 --- a/compiler/include/concretelang-c/Support/CompilerEngine.h +++ b/compiler/include/concretelang-c/Support/CompilerEngine.h @@ -13,9 +13,10 @@ #include "mlir-c/IR.h" #include "mlir-c/Registration.h" -#ifdef __cplusplus -extern "C" { -#endif +// TODO: make this file C-compatible and uncomment the 3 following lines +// #ifdef __cplusplus +// extern "C" { +// #endif /// C wrapper of the mlir::concretelang::LambdaArgument struct lambdaArgument { @@ -179,8 +180,8 @@ MLIR_CAPI_EXPORTED uint64_t lambdaArgumentGetScalar(lambdaArgument &lambda_arg); MLIR_CAPI_EXPORTED std::string library(std::string libraryPath, std::vector modules); -#ifdef __cplusplus -} -#endif +// #ifdef __cplusplus +// } +// #endif #endif // CONCRETELANG_C_SUPPORT_COMPILER_ENGINE_H