Explorar o código

Fix definition of struct timespec for some version of mingw

Samuel Thibault %!s(int64=10) %!d(string=hai) anos
pai
achega
26132b4ec0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/starpu_util.h

+ 1 - 1
include/starpu_util.h

@@ -279,7 +279,7 @@ double starpu_timing_now(void);
 #if !defined(_MSC_VER) || defined(BUILDING_STARPU)
 #include <pthread.h>
 #endif
-#ifndef _TIMESPEC_DEFINED
+#if !defined(_TIMESPEC_DEFINED) && !defined(HAVE_STRUCT_TIMESPEC)
 /* If it didn't get defined in the standard places, then define it ourself */
 #ifndef STARPU_TIMESPEC_DEFINED
 #define STARPU_TIMESPEC_DEFINED 1