Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix the linkage declaration of a function
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 15 Jun 2017 05:42:42 +0000 (07:42 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 15 Jun 2017 05:42:42 +0000 (07:42 +0200)
include/simgrid/simix.h
src/simix/ActorImpl.cpp

index aa8e484..2e98432 100644 (file)
@@ -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 *****************************/
 
index edc1116..5af5070 100644 (file)
@@ -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)
 {