소스 검색

Fix redefinition of timespec in VS2015

VS2015 now defines timespec
Kevin Wojniak 9 년 전
부모
커밋
61fcfcda68
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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 */