summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--psycopg/config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/psycopg/config.h b/psycopg/config.h
index 551cfe4..01e1e56 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