summaryrefslogtreecommitdiff
path: root/ext/standard/microtime.c
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>1999-06-16 17:06:53 +0000
committerStig Bakken <ssb@php.net>1999-06-16 17:06:53 +0000
commit117a2fba0719f071678d172031388a2707041141 (patch)
tree4957e176e6bd4500aa010d775f69a06441501d76 /ext/standard/microtime.c
parent5d4579a1f4093654441894ed0e384159f2340ef9 (diff)
downloadphp-git-117a2fba0719f071678d172031388a2707041141.tar.gz
* fixed some #if/#ifdef issues
* hand-patched in php3 changes from 3.0.6 to HEAD in these files: fopen-wrappers.[ch] ext/standard/file.[ch] ext/standard/fsock.[ch] ext/standard/php3_string.h ext/standard/string.c * added some new file/socket macros for more readable code: FP_FGETS(buf,len,sock,fp,issock) FP_FREAD(buf,len,sock,fp,issock) FP_FEOF(sock,fp,issock) FP_FGETC(sock,fp,issock)
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;