summaryrefslogtreecommitdiff
path: root/win32/time.h
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-11-06 13:42:24 +0100
committerAnatol Belski <ab@php.net>2014-11-06 13:42:24 +0100
commit1b4e9c2713d2e48a77a06cfc656143b482baddfa (patch)
treeec16839abf0ab443f52f9ba93293a56020e08fc3 /win32/time.h
parent75041379a6e73b22c094c3c9c7878a1c4e439725 (diff)
parent6b0eca060f4e4885b4484ef9b16abf984da245d4 (diff)
downloadphp-git-1b4e9c2713d2e48a77a06cfc656143b482baddfa.tar.gz
Merge branch 'pull-request/869'
* pull-request/869: Various fixes to allow support for new VS2014 features - Added some typeof checks to handle JS errors introduced in VS2014 - Added VS2014 to the list of compilers - Changed to use stdint.h if we are using VS2014 or higher - Skip defining timespec if we're using VS2014 or higher - Moved u_char typedef out to always be defined regardless of VS version
Diffstat (limited to 'win32/time.h')
-rw-r--r--win32/time.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/time.h b/win32/time.h
index d5d86eb1ed..c6679b6d9a 100644
--- a/win32/time.h
+++ b/win32/time.h
@@ -29,12 +29,14 @@ struct itimerval {
};
#ifndef timespec
+#if _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 */