From a0d16fcfb207ae088b4579b5ebe9f7b6e020ef5b Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sat, 4 Jun 2011 22:19:56 +0100 Subject: [PATCH] Avoid a ton of warnings when building on mingw mingw doesn't support visibility hidden even if gcc can. --- psycopg/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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