mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-03-11 19:35:46 +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
|
#define PSYCOPG_CONFIG_H 1
|
||||||
|
|
||||||
/* GCC 4.0 and later have support for specifying symbol visibility */
|
/* GCC 4.0 and later have support for specifying symbol visibility */
|
||||||
#if __GNUC__ >= 4
|
#if __GNUC__ >= 4 && !defined(__MINGW32__)
|
||||||
# define HIDDEN __attribute__((visibility("hidden")))
|
# define HIDDEN __attribute__((visibility("hidden")))
|
||||||
#else
|
#else
|
||||||
# define HIDDEN
|
# define HIDDEN
|
||||||
|
|
Loading…
Reference in New Issue
Block a user