diff --git a/objectivec/include/ort_coreml_execution_provider.h b/objectivec/include/ort_coreml_execution_provider.h index 94043f92fa..a015b6fd60 100644 --- a/objectivec/include/ort_coreml_execution_provider.h +++ b/objectivec/include/ort_coreml_execution_provider.h @@ -5,13 +5,21 @@ #import "ort_session.h" -NS_ASSUME_NONNULL_BEGIN +#ifdef __cplusplus +extern "C" { +#endif /** * Gets whether the CoreML execution provider is available. */ BOOL ORTIsCoreMLExecutionProviderAvailable(void); +#ifdef __cplusplus +} +#endif + +NS_ASSUME_NONNULL_BEGIN + /** * Options for configuring the CoreML execution provider. */