summaryrefslogtreecommitdiff
path: root/ext/mcrypt/mcrypt.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2017-04-10 14:47:24 +0800
committerXinchen Hui <laruence@gmail.com>2017-04-10 14:47:24 +0800
commit4bebcb84ad47e687fc3ef3a01b875aa04dfb72d0 (patch)
treeceffd46146f8a14f0fc69099ec3f829a9a6da8c0 /ext/mcrypt/mcrypt.c
parent66411ee62ee8bd5e015c901092014dd9229fca01 (diff)
downloadphp-git-4bebcb84ad47e687fc3ef3a01b875aa04dfb72d0.tar.gz
Fixed condition check
Diffstat (limited to 'ext/mcrypt/mcrypt.c')
-rw-r--r--ext/mcrypt/mcrypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mcrypt/mcrypt.c b/ext/mcrypt/mcrypt.c
index c589b40fab..5e32c3230a 100644
--- a/ext/mcrypt/mcrypt.c
+++ b/ext/mcrypt/mcrypt.c
@@ -26,7 +26,7 @@
#if HAVE_LIBMCRYPT
-#if PHP_WIN32
+#ifdef PHP_WIN32
# include "win32/winutil.h"
#endif
@@ -1376,7 +1376,7 @@ PHP_FUNCTION(mcrypt_create_iv)
iv = ecalloc(size + 1, 1);
if (source == RANDOM || source == URANDOM) {
-#if PHP_WIN32
+#ifdef PHP_WIN32
/* random/urandom equivalent on Windows */
BYTE *iv_b = (BYTE *) iv;
if (php_win32_get_random_bytes(iv_b, (size_t) size) == FAILURE){