From 2116fd199992861a7cf84e9faaa59a2e7a79c77f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Tue, 31 Dec 2024 14:05:10 -0500 Subject: [PATCH] Update onnxruntime_c_api.h to work with MinGW (#23169) The SAL2 macros are not always available there ### Description Make SAL2 macros only available on MSVC. ### Motivation and Context https://github.com/microsoft/onnxruntime/issues/1175 --- include/onnxruntime/core/session/onnxruntime_c_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/onnxruntime/core/session/onnxruntime_c_api.h b/include/onnxruntime/core/session/onnxruntime_c_api.h index a35d975ac8..3d995e21e0 100644 --- a/include/onnxruntime/core/session/onnxruntime_c_api.h +++ b/include/onnxruntime/core/session/onnxruntime_c_api.h @@ -46,7 +46,7 @@ extern "C" { //! @} // SAL2 Definitions -#ifndef _WIN32 +#ifndef _MSC_VER #define _In_ #define _In_z_ #define _In_opt_