diff --git a/psycopg/config.h b/psycopg/config.h index 551cfe48..01e1e562 100644 --- a/psycopg/config.h +++ b/psycopg/config.h @@ -27,7 +27,7 @@ #define PSYCOPG_CONFIG_H 1 /* GCC 4.0 and later have support for specifying symbol visibility */ -#if __GNUC__ >= 4 +#if __GNUC__ >= 4 && !defined(__MINGW32__) # define HIDDEN __attribute__((visibility("hidden"))) #else # define HIDDEN