]> granicus.if.org Git - php/commitdiff
fix ANSI C90 compat
authorAnatol Belski <ab@php.net>
Tue, 5 Mar 2013 19:24:58 +0000 (20:24 +0100)
committerAnatol Belski <ab@php.net>
Tue, 5 Mar 2013 19:24:58 +0000 (20:24 +0100)
ZendAccelerator.c

index 9690bb8122fb52d761f0ac28bc2be64920321c9e..06469f5c025c6dc2c375723a0601ae37a374a2be 100644 (file)
@@ -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;