From bb694317220c63d34cd0af5c806d87f295549b43 Mon Sep 17 00:00:00 2001 From: Dewey Dunnington Date: Fri, 6 Oct 2023 22:11:11 -0300 Subject: [PATCH] better define --- c/driver/common/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/driver/common/utils.h b/c/driver/common/utils.h index b4bd7276bb..50f1974928 100644 --- a/c/driver/common/utils.h +++ b/c/driver/common/utils.h @@ -32,7 +32,7 @@ int AdbcStatusCodeToErrno(AdbcStatusCode code); // On mingw we have to specify a slightly different format attribute and ensure // that we use the version that knows how to deal with %lld -#if defined(_WIN32) && !defined(MSVC) +#if defined(__MINGW32__) #define __USE_MINGW_ANSI_STDIO 1 #define ADBC_CHECK_PRINTF_ATTRIBUTE __attribute__((format(__MINGW_PRINTF_FORMAT, 2, 3))) #else