mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-23 01:16:34 +03:00
Avoid a ton of warnings when building on mingw
mingw doesn't support visibility hidden even if gcc can.
This commit is contained in:
parent
62a8ef308a
commit
a0d16fcfb2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user