diff options
author | Anatol Belski <ab@php.net> | 2014-11-06 14:03:42 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-11-06 14:03:42 +0100 |
commit | f2ad1fb3c9ba90217cfc00dc57a2b5a99c21fdff (patch) | |
tree | c08ae9fc9458a963b19de1456f908084622858dd | |
parent | bea7d06b79187692a3c4ec7f34e41e017b359e5d (diff) | |
download | php-git-f2ad1fb3c9ba90217cfc00dc57a2b5a99c21fdff.tar.gz |
fix preprocessor conditions
-rw-r--r-- | win32/time.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/win32/time.h b/win32/time.h index c6679b6d9a..8f39c0481c 100644 --- a/win32/time.h +++ b/win32/time.h @@ -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 */ |