Change "#ifdef WIN32" to "#ifdef _WIN32" (#19254)

### Description
`_WIN32` is a standard macro listed at
https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170
. But `WIN32` is not.
This commit is contained in:
Changming Sun 2024-01-24 14:35:44 -08:00 committed by GitHub
parent a33b5bd1fa
commit a28abeb241
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@
#include "onnxruntime/core/session/onnxruntime_c_api.h"
#include "OrtJniUtil.h"
#include "ai_onnxruntime_OrtSession_SessionOptions.h"
#ifdef WIN32
#ifdef _WIN32
#include <Windows.h>
#else
#include <dlfcn.h>
@ -318,7 +318,7 @@ JNIEXPORT void JNICALL Java_ai_onnxruntime_OrtSession_00024SessionOptions_closeC
// Iterate the handles, calling the appropriate close function
for (jint i = 0; i < numHandles; i++) {
#ifdef WIN32
#ifdef _WIN32
FreeLibrary((void*)handles[i]);
#else
dlclose((void*)handles[i]);

View file

@ -18,7 +18,7 @@ Abstract:
#include "mlasi.h"
#ifdef WIN32
#ifdef _WIN32
#define tile_dpbssd(dst, src1, src2) _tile_dpbssd(dst, src1, src2)
#define tile_dpbsud(dst, src1, src2) _tile_dpbsud(dst, src1, src2)