浏览代码

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

Nathalie Furmento 12 年之前
父节点
当前提交
56c4ae0bc5
共有 1 个文件被更改,包括 8 次插入0 次删除
  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