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