Browse Source

Merge pull request #216 from kainjow/patch-1

Fix redefinition of timespec in VS2015
bel2125 9 năm trước cách đây
mục cha
commit
baee5d3ddc
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 */