pike.git/src/global.h:553: Inside #if undefined(PMOD_EXPORT) and #if defined (__NT__) && defined (USE_DLL)
#ifndef PMOD_EXPORT
# if defined (__NT__) && defined (USE_DLL)
# ifdef DYNAMIC_MODULE
# define PMOD_EXPORT __declspec(dllimport)
# else
/* A pmod export becomes an import in the dynamic module. This means
* that modules can't use PMOD_EXPORT for identifiers they export
* themselves, unless they are compiled statically. */
# define PMOD_EXPORT __declspec(dllexport)
# endif
+ # elif __GNUC__ >= 4
+ # define PMOD_EXPORT __attribute__ ((visibility("default")))
# else
# define PMOD_EXPORT
# endif
#endif
#ifndef PMOD_PROTO
#define PMOD_PROTO
#endif
#ifndef DO_PIKE_CLEANUP