summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-06-04 22:19:56 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-06-04 22:19:56 +0100
commita0d16fcfb207ae088b4579b5ebe9f7b6e020ef5b (patch)
tree11e8781d2343e4334816b6d7a34de7bfb22fb9fc
parent62a8ef308a664ee8c6251cfba27da7fe6fef2d8e (diff)
downloadpsycopg2-a0d16fcfb207ae088b4579b5ebe9f7b6e020ef5b.tar.gz
Avoid a ton of warnings when building on mingw
mingw doesn't support visibility hidden even if gcc can.
-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