瀏覽代碼

simgrid: Avoid including xbt/synchro.h when we have the s4u equivalent

Samuel Thibault 5 年之前
父節點
當前提交
37ead48eee
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/common/thread.c

+ 4 - 1
src/common/thread.c

@@ -29,7 +29,10 @@
 #include <limits.h>
 
 #ifdef STARPU_SIMGRID
-#ifdef STARPU_HAVE_XBT_SYNCHRO_H
+#ifdef STARPU_HAVE_SIMGRID_MUTEX_H
+#include <simgrid/mutex.h>
+#include <simgrid/cond.h>
+#elif defined(STARPU_HAVE_XBT_SYNCHRO_H)
 #include <xbt/synchro.h>
 #else
 #include <xbt/synchro_core.h>