Skip to content

Commit 65d7781

Browse files
committed
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0: Fixed condition check
2 parents d65459f + 4bebcb8 commit 65d7781

16 files changed

Lines changed: 23 additions & 23 deletions

File tree

ext/bcmath/libbcmath/src/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if PHP_WIN32
1+
#ifdef PHP_WIN32
22
#include "../../../../main/config.w32.h"
33
#else
44
#include <php_config.h>

ext/gd/gdcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include "php.h"
4040

4141
/* This just seems unessacary */
42-
#if PHP_WIN32
42+
#ifdef PHP_WIN32
4343
#define ENABLE_GD_TTF
4444
#else
4545
#include <php_config.h>

ext/mcrypt/mcrypt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
#if HAVE_LIBMCRYPT
2828

29-
#if PHP_WIN32
29+
#ifdef PHP_WIN32
3030
# include "win32/winutil.h"
3131
#endif
3232

@@ -1376,7 +1376,7 @@ PHP_FUNCTION(mcrypt_create_iv)
13761376
iv = ecalloc(size + 1, 1);
13771377

13781378
if (source == RANDOM || source == URANDOM) {
1379-
#if PHP_WIN32
1379+
#ifdef PHP_WIN32
13801380
/* random/urandom equivalent on Windows */
13811381
BYTE *iv_b = (BYTE *) iv;
13821382
if (php_win32_get_random_bytes(iv_b, (size_t) size) == FAILURE){

ext/sockets/multicast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ static int _php_source_op_to_ipv4_op(enum source_op sop)
627627

628628
#endif /* HAS_MCAST_EXT */
629629

630-
#if PHP_WIN32
630+
#ifdef PHP_WIN32
631631
int php_if_index_to_addr4(unsigned if_index, php_socket *php_sock, struct in_addr *out_addr)
632632
{
633633
MIB_IPADDRTABLE *addr_table;

ext/standard/crypt_freesec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#ifndef _CRYPT_FREESEC_H
44
#define _CRYPT_FREESEC_H
55

6-
#if PHP_WIN32
6+
#ifdef PHP_WIN32
77
# ifndef inline
88
# define inline __inline
99
# endif

ext/standard/crypt_sha256.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct sha256_ctx {
6868
char buffer[128]; /* NB: always correctly aligned for uint32_t. */
6969
};
7070

71-
#if PHP_WIN32 || (!defined(WORDS_BIGENDIAN))
71+
#if defined(PHP_WIN32) || (!defined(WORDS_BIGENDIAN))
7272
# define SWAP(n) \
7373
(((n) << 24) | (((n) & 0xff00) << 8) | (((n) >> 8) & 0xff00) | ((n) >> 24))
7474
#else

ext/standard/crypt_sha512.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ struct sha512_ctx
6363
};
6464

6565

66-
#if PHP_WIN32 || (!defined(WORDS_BIGENDIAN))
66+
#if defined(PHP_WIN32) || (!defined(WORDS_BIGENDIAN))
6767
# define SWAP(n) \
6868
(((n) << 56) \
6969
| (((n) & 0xff00) << 40) \

ext/standard/dl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ PHPAPI int php_load_extension(char *filename, int type, int start_now)
131131
/* load dynamic symbol */
132132
handle = DL_LOAD(libpath);
133133
if (!handle) {
134-
#if PHP_WIN32
134+
#ifdef PHP_WIN32
135135
char *err = GET_DL_ERROR();
136136
if (err && (*err != '\0')) {
137137
php_error_docref(NULL, error_type, "Unable to load dynamic library '%s' - %s", libpath, err);

ext/standard/html.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
*/
4040

4141
#include "php.h"
42-
#if PHP_WIN32
42+
#ifdef PHP_WIN32
4343
#include "config.w32.h"
4444
#else
4545
#include <php_config.h>

ext/standard/password.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "info.h"
3232
#include "php_random.h"
3333

34-
#if PHP_WIN32
34+
#ifdef PHP_WIN32
3535
#include "win32/winutil.h"
3636
#endif
3737

0 commit comments

Comments
 (0)