]> granicus.if.org Git - php/commitdiff
fix preprocessor conditions
authorAnatol Belski <ab@php.net>
Thu, 6 Nov 2014 13:03:42 +0000 (14:03 +0100)
committerAnatol Belski <ab@php.net>
Thu, 6 Nov 2014 13:03:42 +0000 (14:03 +0100)
win32/time.h

index c6679b6d9a49d77b6f553517e34516228e7857e8..8f39c0481c2d1e4aa2b85741d1cbfe878a1d95f6 100644 (file)
@@ -28,15 +28,13 @@ struct itimerval {
        struct timeval it_value;        /* current value */
 };
 
-#ifndef timespec
-#if _MSC_VER < 1900
+#if !defined(timespec) && _MSC_VER < 1900
 struct timespec
 {
        time_t   tv_sec;   /* seconds */
        long     tv_nsec;  /* nanoseconds */
 };
 #endif
-#endif
 
 #define ITIMER_REAL    0               /*generates sigalrm */
 #define ITIMER_VIRTUAL 1               /*generates sigvtalrm */