Ver código fonte

include/starpu_config.h.in: define struct timespec when running on MSVC

Nathalie Furmento 12 anos atrás
pai
commit
56c4ae0bc5
1 arquivos alterados com 8 adições e 0 exclusões
  1. 8 0
      include/starpu_config.h.in

+ 8 - 0
include/starpu_config.h.in

@@ -98,6 +98,14 @@ typedef ssize_t starpu_ssize_t;
 #  define __starpu_inline __inline__
 #endif
 
+#ifdef _MSC_VER
+struct timespec
+{
+  time_t  tv_sec;  /* Seconds */
+  long    tv_nsec; /* Nanoseconds */
+};
+#endif
+
 #undef STARPU_QUICK_CHECK
 #undef STARPU_USE_DRAND48
 #undef STARPU_USE_ERAND48_R