Avoid a ton of warnings when building on mingw

mingw doesn't support visibility hidden even if gcc can.
This commit is contained in:
Daniele Varrazzo 2011-06-04 22:19:56 +01:00
parent 62a8ef308a
commit a0d16fcfb2

View File

@ -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