Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Detect/fix conflicting visibility and fix visibility wrt lua/java bindings
authorGabriel Corona <gabriel.corona@loria.fr>
Thu, 1 Oct 2015 07:27:57 +0000 (09:27 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Thu, 1 Oct 2015 09:45:00 +0000 (11:45 +0200)
include/xbt/base.h
src/mc/mcer_ignore.cpp
src/msg/msg_private.h
src/surf/surf_routing.hpp
src/surf/surf_routing_generic.hpp

index fe8038d..0f34bad 100644 (file)
 
 
 /* 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__
index 9922f65..43fcc42 100644 (file)
@@ -153,7 +153,7 @@ static void MC_ignore_local_variable_in_object(const char *var_name,
                                                const char *subprogram_name,
                                                simgrid::mc::ObjectInformation* info);
 
-XBT_PRIVATE void MC_ignore_local_variable(const char *var_name, const char *frame_name)
+void MC_ignore_local_variable(const char *var_name, const char *frame_name)
 {
   simgrid::mc::Process* process = &mc_model_checker->process();
   if (strcmp(frame_name, "*") == 0)
index b7d7b9e..01bbea5 100644 (file)
@@ -160,7 +160,7 @@ XBT_PUBLIC_DATA(MSG_Global_t) msg_global;
 
 XBT_PRIVATE msg_host_t __MSG_host_create(sg_host_t host);
 XBT_PRIVATE msg_storage_t __MSG_storage_create(smx_storage_t storage);
-XBT_PRIVATE void __MSG_host_destroy(msg_host_t host);
+void __MSG_host_destroy(msg_host_t host);
 XBT_PRIVATE void __MSG_host_priv_free(msg_host_priv_t priv);
 XBT_PRIVATE void __MSG_storage_destroy(msg_storage_priv_t host);
 XBT_PRIVATE void __MSG_file_destroy(msg_file_priv_t host);
index 3d4a4ea..fbe19f2 100644 (file)
@@ -23,10 +23,10 @@ XBT_PRIVATE xbt_edge_t new_xbt_graph_edge (xbt_graph_t graph, xbt_node_t s, xbt_
  * Classes *
  ***********/
 
-class XBT_PRIVATE As;
+class As;
 class XBT_PRIVATE RoutingModelDescription;
 class XBT_PRIVATE Onelink;
-class XBT_PRIVATE RoutingPlatf;
+class RoutingPlatf;
 
 /** @ingroup SURF_routing_interface
  * @brief A routing edge
index cf10487..d397ae1 100644 (file)
@@ -13,7 +13,7 @@
 
 class XBT_PRIVATE AsGeneric;
 
-XBT_PRIVATE void generic_free_route(sg_platf_route_cbarg_t route);
+void generic_free_route(sg_platf_route_cbarg_t route);
 
 class XBT_PRIVATE AsGeneric : public AsNone {
 public: