com php-src: fix ANSI C90 compat: ZendAccelerator.c
| From: | Dmitry Stogov | Date: | Tue, 05 Mar 2013 19:24:58 +0000 |
| Subject: | com php-src: fix ANSI C90 compat: ZendAccelerator.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71484@lists.php.net to get a copy of this message | ||
Commit: bfb8b9153b752e5ed22ed2a621c5dc9f77df008d
Author: Anatol Belski <ab@php.net> Tue, 5 Mar 2013 20:24:58 +0100
Parents: c3c244af811d7288fad407ce61aa2f719dbbef44
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bfb8b9153b752e5ed22ed2a621c5dc9f77df008d
Log:
fix ANSI C90 compat
Changed paths:
M ZendAccelerator.c
Diff:
diff --git a/ZendAccelerator.c b/ZendAccelerator.c
index 9690bb8..06469f5 100644
--- a/ZendAccelerator..c
+++ b/ZendAccelerator.c
@@ -698,6 +698,9 @@ static accel_time_t zend_get_file_handle_timestamp_win(zend_file_handle *file_ha
static accel_time_t zend_get_file_handle_timestamp(zend_file_handle *file_handle TSRMLS_DC)
{
struct stat statbuf;
+#ifdef ZEND_WIN32
+ accel_time_t res;
+#endif
if (sapi_module.get_stat &&
!EG(opline_ptr) &&
@@ -711,8 +714,6 @@ static accel_time_t zend_get_file_handle_timestamp(zend_file_handle *file_handle
}
#ifdef ZEND_WIN32
- accel_time_t res;
-
res = zend_get_file_handle_timestamp_win(file_handle);
if (res) {
return res;