Explorar o código

Additional define for clock_gettime in Windows

bel2125 %!s(int64=8) %!d(string=hai) anos
pai
achega
66595d5f6b
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/civetweb.c

+ 5 - 1
src/civetweb.c

@@ -391,7 +391,11 @@ struct timespec {
 };
 #endif
 
-#ifndef WIN_PTHREADS_TIME_H
+#if !defined(WIN_PTHREADS_TIME_H)
+#define MUST_IMPLEMENT_CLOCK_GETTIME
+#endif
+
+#ifdef MUST_IMPLEMENT_CLOCK_GETTIME
 static int
 clock_gettime(clockid_t clk_id, struct timespec *tp)
 {