com php-src: fix include with vc14: win32/signal.h
| From: | Anatol Belski | Date: | Wed, 22 Apr 2015 20:26:06 +0000 |
| Subject: | com php-src: fix include with vc14: win32/signal.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86447@lists.php.net to get a copy of this message | ||
Commit: 4923d234690a900d269a19599e4b6f5f4b4779be
Author: Anatol Belski <ab@php.net> Mon, 13 Apr 2015 10:51:24 +0200
Parents: 6a1bf93ad9b538342b03866ec9afd7a77f347afd
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4923d234690a900d269a19599e4b6f5f4b4779be
Log:
fix include with vc14
Changed paths:
M win32/signal.h
Diff:
diff --git a/win32/signal.h b/win32/signal.h
index df60dfb..a131e6e 100644
--- a/win32/signal.h
+++ b/win32/signal.h
@@ -1,3 +1,6 @@
+#if _MSC_VER >= 1900
+#include <signal.h>
+#else
/*
** Change here: if you plan to use your own version of <signal.h>
** the original "#include <signal.h>" produces an infinite reinclusion
@@ -11,6 +14,7 @@
** include file is located.
*/
#include <../include/signal.h>
+#endif
#define SIGALRM 13
#define SIGVTALRM 26 /* virtual time alarm */
#define SIGPROF 27 /* profiling time alarm */