浏览代码

Avoid symbol issues with cpp programs in simgrid

Samuel Thibault 9 年之前
父节点
当前提交
68a87f7cc5
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      include/starpu.h

+ 4 - 1
include/starpu.h

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  *
- * Copyright (C) 2009-2014  Université de Bordeaux
+ * Copyright (C) 2009-2014, 2016  Université de Bordeaux
  * Copyright (C) 2010-2015  CNRS
  * Copyright (C) 2010-2015  CNRS
  * Copyright (C) 2014  INRIA
  * Copyright (C) 2014  INRIA
  *
  *
@@ -131,6 +131,9 @@ struct starpu_conf
 
 
 int starpu_conf_init(struct starpu_conf *conf);
 int starpu_conf_init(struct starpu_conf *conf);
 
 
+/* Defined in simgrid applications, here just making sure it will use C symbol naming convention */
+int starpu_main();
+
 int starpu_init(struct starpu_conf *conf) STARPU_WARN_UNUSED_RESULT;
 int starpu_init(struct starpu_conf *conf) STARPU_WARN_UNUSED_RESULT;
 
 
 int starpu_initialize(struct starpu_conf *user_conf, int *argc, char ***argv);
 int starpu_initialize(struct starpu_conf *user_conf, int *argc, char ***argv);