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
This commit is contained in:
Jean-Michaël Celerier 2024-12-31 14:05:10 -05:00 committed by GitHub
parent 69bb53db85
commit 2116fd1999
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,7 +46,7 @@ extern "C" {
//! @}
// SAL2 Definitions
#ifndef _WIN32
#ifndef _MSC_VER
#define _In_
#define _In_z_
#define _In_opt_