Browse Source

Use a macro instead of a typedef for _starpu_pthread_barrier_t: common/barrier.h won't get included to define pthread_barrier_t when the system does not have barriers (e.g. Darwin) since it includes common/utils.h

Samuel Thibault 12 years ago
parent
commit
c3360e3cd8
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/common/utils.h

+ 1 - 3
src/common/utils.h

@@ -405,9 +405,7 @@ typedef pthread_cond_t _starpu_pthread_cond_t;
 } while (0)
 } while (0)
 #endif
 #endif
 
 
-#include <common/barrier.h>
-
-typedef pthread_barrier_t _starpu_pthread_barrier_t;
+#define _starpu_pthread_barrier_t pthread_barrier_t
 /*
 /*
  * Encapsulation of the pthread_barrier_* functions.
  * Encapsulation of the pthread_barrier_* functions.
  */
  */