summaryrefslogtreecommitdiff
path: root/ext/standard/microtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/microtime.c')
-rw-r--r--ext/standard/microtime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/microtime.c b/ext/standard/microtime.c
index 7dd3e9b66c..f2a0f9c542 100644
--- a/ext/standard/microtime.c
+++ b/ext/standard/microtime.c
@@ -41,7 +41,7 @@
#include "snprintf.h"
#include <stdio.h>
-#if HAVE_GETTIMEOFDAY
+#ifdef HAVE_GETTIMEOFDAY
#if MSVC5
#include "win32/time.h"
#else
@@ -56,7 +56,7 @@
Returns a string containing the current time in seconds and microseconds */
PHP_FUNCTION(microtime)
{
-#if HAVE_GETTIMEOFDAY
+#ifdef HAVE_GETTIMEOFDAY
struct timeval tp;
long sec = 0L;
double msec = 0.0;
@@ -77,7 +77,7 @@ PHP_FUNCTION(microtime)
returns the current time as array */
PHP_FUNCTION(gettimeofday)
{
-#if HAVE_GETTIMEOFDAY
+#ifdef HAVE_GETTIMEOFDAY
struct timeval tp;
struct timezone tz;