Skip to content

Commit f2ad1fb

Browse files
committed
fix preprocessor conditions
1 parent bea7d06 commit f2ad1fb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

win32/time.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,13 @@ struct itimerval {
2828
struct timeval it_value; /* current value */
2929
};
3030

31-
#ifndef timespec
32-
#if _MSC_VER < 1900
31+
#if !defined(timespec) && _MSC_VER < 1900
3332
struct timespec
3433
{
3534
time_t tv_sec; /* seconds */
3635
long tv_nsec; /* nanoseconds */
3736
};
3837
#endif
39-
#endif
4038

4139
#define ITIMER_REAL 0 /*generates sigalrm */
4240
#define ITIMER_VIRTUAL 1 /*generates sigvtalrm */

0 commit comments

Comments
 (0)