From 9687a04f4def01cdd56aa887a9948410463e1909 Mon Sep 17 00:00:00 2001 From: Lukas Fittl Date: Sun, 31 Dec 2023 22:13:09 -0800 Subject: [PATCH] Check for msys2/cygwin --- scripts/pg_config_overrides.h | 2 +- src/postgres/include/pg_config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pg_config_overrides.h b/scripts/pg_config_overrides.h index c412ba43..be33bcba 100644 --- a/scripts/pg_config_overrides.h +++ b/scripts/pg_config_overrides.h @@ -97,7 +97,7 @@ #define USE_WIN32_SEMAPHORES 1 #define USE_WIN32_SHARED_MEMORY 1 #undef PG_PRINTF_ATTRIBUTE -#if defined(__MINGW32__) || defined(__MINGW64__) +#if defined(__MINGW32__) || defined(__MINGW64__) || defined(__MSYS__) || defined(__CYGWIN__) #define PG_PRINTF_ATTRIBUTE gnu_printf #undef HAVE_MBSTOWCS_L #undef HAVE_WCSTOMBS_L diff --git a/src/postgres/include/pg_config.h b/src/postgres/include/pg_config.h index 7b6303db..e44578b1 100644 --- a/src/postgres/include/pg_config.h +++ b/src/postgres/include/pg_config.h @@ -925,7 +925,7 @@ #define USE_WIN32_SEMAPHORES 1 #define USE_WIN32_SHARED_MEMORY 1 #undef PG_PRINTF_ATTRIBUTE -#if defined(__MINGW32__) || defined(__MINGW64__) +#if defined(__MINGW32__) || defined(__MINGW64__) || defined(__MSYS__) || defined(__CYGWIN__) #define PG_PRINTF_ATTRIBUTE gnu_printf #undef HAVE_MBSTOWCS_L #undef HAVE_WCSTOMBS_L