summaryrefslogtreecommitdiff
path: root/ext/standard/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/random.c')
-rw-r--r--ext/standard/random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/random.c b/ext/standard/random.c
index 1fd424738c..202d272f58 100644
--- a/ext/standard/random.c
+++ b/ext/standard/random.c
@@ -27,7 +27,7 @@
#include "zend_exceptions.h"
#include "php_random.h"
-#if PHP_WIN32
+#ifdef PHP_WIN32
# include "win32/winutil.h"
#endif
#ifdef __linux__
@@ -83,7 +83,7 @@ PHP_MSHUTDOWN_FUNCTION(random)
/* {{{ */
PHPAPI int php_random_bytes(void *bytes, size_t size, zend_bool should_throw)
{
-#if PHP_WIN32
+#ifdef PHP_WIN32
/* Defer to CryptGenRandom on Windows */
if (php_win32_get_random_bytes(bytes, size) == FAILURE) {
if (should_throw) {