X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/aa91571018408a593871a08e44b56cdc9323dd37..bae076147bfc88ce8607f15761149f42d0443585:/include/xbt/base.h diff --git a/include/xbt/base.h b/include/xbt/base.h index fe8038db26..0f34bad192 100644 --- a/include/xbt/base.h +++ b/include/xbt/base.h @@ -237,13 +237,21 @@ /* UNIX build */ -#else +#elsif defined(__ELF__) + # define XBT_PUBLIC(type) type # define XBT_EXPORT_NO_IMPORT(type) type # define XBT_IMPORT_NO_EXPORT(type) type # define XBT_PUBLIC_DATA(type) extern type # define XBT_PUBLIC_CLASS class +#else +# define XBT_PUBLIC(type) __attribute__((visibility("default"))) type +# define XBT_EXPORT_NO_IMPORT(type) __attribute__((visibility("default"))) type +# define XBT_IMPORT_NO_EXPORT(type) __attribute__((visibility("default"))) type +# define XBT_PUBLIC_DATA(type) extern __attribute__((visibility("default"))) type +# define XBT_PUBLIC_CLASS class __attribute__((visibility("default"))) + #endif #ifdef __ELF__