Browse Source

icm/dlmain.c: restrict exported symbols under LINUX

pre-master-46
h_vogt 13 years ago
committed by rlar
parent
commit
9da123df26
  1. 9
      src/xspice/icm/dlmain.c

9
src/xspice/icm/dlmain.c

@ -44,7 +44,14 @@ struct coreInfo_t *coreitf;
#if defined (__MINGW32__) || defined (__CYGWIN__) || defined (_MSC_VER)
#define CM_EXPORT __declspec(dllexport)
#else
#define CM_EXPORT
/* use with gcc flag -fvisibility=hidden */
#if __GNUC__ >= 4
#define CM_EXPORT __attribute__ ((visibility ("default")))
#define CM_EXPORT_LOCAL __attribute__ ((visibility ("hidden")))
#else
#define CM_EXPORT
#define CM_EXPORT_LOCAL
#endif
#endif
extern CM_EXPORT void *CMdevs(void);

Loading…
Cancel
Save