Browse Source

Fix redefinition of timespec in VS2015

VS2015 now defines timespec
Kevin Wojniak 9 năm trước cách đây
mục cha
commit
61fcfcda68
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/civetweb.c

+ 3 - 0
src/civetweb.c

@@ -320,6 +320,9 @@ typedef DWORD clockid_t;
 #define CLOCK_REALTIME (2)
 #endif
 
+#if defined(_MSC_VER) && (_MSC_VER >= 1900)
+#define _TIMESPEC_DEFINED
+#endif
 #ifndef _TIMESPEC_DEFINED
 struct timespec {
 	time_t tv_sec; /* seconds */