diff options
Diffstat (limited to 'include/zmq.h')
-rw-r--r-- | include/zmq.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/zmq.h b/include/zmq.h index c2efa07..7a63253 100644 --- a/include/zmq.h +++ b/include/zmq.h @@ -39,6 +39,9 @@ extern "C" { # endif #else # define ZMQ_EXPORT +# if defined __GNUC__ && __GNUC__ >= 4 +# pragma GCC visibility push(default) +# endif #endif /******************************************************************************/ @@ -242,6 +245,11 @@ ZMQ_EXPORT int zmq_poll (zmq_pollitem_t *items, int nitems, long timeout); ZMQ_EXPORT int zmq_device (int device, void * insocket, void* outsocket); +#undef ZMQ_EXPORT +#if defined __GNUC__ && __GNUC__ >= 4 && !defined _WIN32 +# pragma GCC visibility pop +#endif + #ifdef __cplusplus } #endif |