Browse Source

Avoid symbol issues with cpp programs in simgrid

Samuel Thibault 9 years ago
parent
commit
68a87f7cc5
1 changed files with 4 additions and 1 deletions
  1. 4 1
      include/starpu.h

+ 4 - 1
include/starpu.h

@@ -1,6 +1,6 @@
 /* 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) 2014  INRIA
  *
@@ -131,6 +131,9 @@ struct starpu_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_initialize(struct starpu_conf *user_conf, int *argc, char ***argv);