summaryrefslogtreecommitdiff
path: root/ext/standard/uniqid.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-02-11 15:59:30 +0000
committerZeev Suraski <zeev@php.net>2000-02-11 15:59:30 +0000
commit80bdd19e031ca0dac2dfd4cb62ff43558d477663 (patch)
tree539fd5059d50e32acf9b991354d48cbcecb16426 /ext/standard/uniqid.c
parent80f4886c5a71b0cdc4a3159297160e30ddd298cb (diff)
downloadphp-git-80bdd19e031ca0dac2dfd4cb62ff43558d477663.tar.gz
Fine tune Andi's patch
Diffstat (limited to 'ext/standard/uniqid.c')
-rw-r--r--ext/standard/uniqid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/uniqid.c b/ext/standard/uniqid.c
index 9e4200ab74..30ab4473ec 100644
--- a/ext/standard/uniqid.c
+++ b/ext/standard/uniqid.c
@@ -29,7 +29,7 @@
#include <errno.h>
#include <stdio.h>
-#if PHP_WIN32
+#ifdef PHP_WIN32
#include "win32/time.h"
#else
#include <sys/time.h>
@@ -64,7 +64,7 @@ PHP_FUNCTION(uniqid)
php_error(E_WARNING, "The prefix to uniqid should not be more than 114 characters.");
return;
}
-#if HAVE_USLEEP && !(PHP_WIN32)
+#if HAVE_USLEEP && !defined(PHP_WIN32)
if (!MORE_ENTROPY) {
usleep(1);
}