From: Martin Quinson Date: Thu, 15 Jun 2017 05:42:42 +0000 (+0200) Subject: fix the linkage declaration of a function X-Git-Tag: v3.16~87 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/94eedaffdce12bcd4273b40fc7875bb6bbe16345 fix the linkage declaration of a function --- diff --git a/include/simgrid/simix.h b/include/simgrid/simix.h index aa8e48440a..2e98432974 100644 --- a/include/simgrid/simix.h +++ b/include/simgrid/simix.h @@ -248,6 +248,7 @@ XBT_PUBLIC(void) simcall_execution_set_bound(smx_activity_t execution, double bo XBT_PUBLIC(e_smx_state_t) simcall_execution_wait(smx_activity_t execution); /**************************** Process simcalls ********************************/ +SG_BEGIN_DECL() /* Constructor and Destructor */ XBT_PUBLIC(smx_actor_t) simcall_process_create(const char* name, xbt_main_func_t code, void* data, sg_host_t host, int argc, char** argv, @@ -277,6 +278,7 @@ XBT_PUBLIC(smx_actor_t) simcall_process_restart(smx_actor_t process); XBT_PUBLIC(void) simcall_process_join(smx_actor_t process, double timeout); /* Sleep control */ XBT_PUBLIC(e_smx_state_t) simcall_process_sleep(double duration); +SG_END_DECL() /************************** Comunication simcalls *****************************/ diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index edc1116029..5af5070581 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -957,6 +957,7 @@ void SIMIX_segment_index_set(smx_actor_t proc, int index){ * \param properties the properties of the process * \param auto_restart either it is autorestarting or not. */ +extern "C" smx_actor_t simcall_process_create(const char* name, xbt_main_func_t code, void* data, sg_host_t host, int argc, char** argv, xbt_dict_t properties) {