]> granicus.if.org Git - php/commitdiff
- Changed last commit to use VK_ESCAPE on Windows
authorFelipe Pena <felipensp@gmail.com>
Mon, 30 Apr 2012 13:31:49 +0000 (10:31 -0300)
committerFelipe Pena <felipensp@gmail.com>
Mon, 30 Apr 2012 13:31:49 +0000 (10:31 -0300)
Zend/zend_language_scanner.l

index 0a35f3fd00f9f2f2aa2faccde0137f4cbe52d736..2e3d45225c862f2a210cf4d341866cd921d4e789 100644 (file)
@@ -30,7 +30,9 @@
 #endif
 
 #include "zend_language_scanner_defs.h"
-
+#ifdef PHP_WIN32
+# include <Winuser.h>
+#endif
 #include <errno.h>
 #include "zend.h"
 #include "zend_alloc.h"
@@ -906,7 +908,7 @@ static void zend_scan_escape_string(zval *zendlval, char *str, int len, char quo
                                        break;
                                case 'e':
 #ifdef PHP_WIN32
-                                       *t++ = (char) 27;
+                                       *t++ = VK_ESCAPE;
 #else
                                        *t++ = '\e';
 #endif