@@ -411,7 +411,7 @@ void spl_filesystem_info_set_filename(spl_filesystem_object *intern, char *path,
411
411
}
412
412
413
413
p1 = strrchr (intern -> file_name , '/' );
414
- #if defined( PHP_WIN32 )
414
+ #ifdef PHP_WIN32
415
415
p2 = strrchr (intern -> file_name , '\\' );
416
416
#else
417
417
p2 = 0 ;
@@ -435,7 +435,7 @@ static spl_filesystem_object *spl_filesystem_object_create_info(spl_filesystem_o
435
435
zend_error_handling error_handling ;
436
436
437
437
if (!file_path || !file_path_len ) {
438
- #if defined( PHP_WIN32 )
438
+ #ifdef PHP_WIN32
439
439
zend_throw_exception_ex (spl_ce_RuntimeException , 0 , "Cannot create SplFileInfo for empty path" );
440
440
if (file_path && !use_copy ) {
441
441
efree (file_path );
@@ -1252,7 +1252,7 @@ PHP_METHOD(SplFileInfo, getLinkTarget)
1252
1252
if (intern -> file_name == NULL ) {
1253
1253
spl_filesystem_object_get_file_name (intern );
1254
1254
}
1255
- #if defined(PHP_WIN32 ) || HAVE_SYMLINK
1255
+ #if defined(PHP_WIN32 ) || defined( HAVE_SYMLINK )
1256
1256
if (intern -> file_name == NULL ) {
1257
1257
php_error_docref (NULL , E_WARNING , "Empty filename" );
1258
1258
RETURN_FALSE ;
@@ -2152,7 +2152,7 @@ PHP_METHOD(SplFileObject, __construct)
2152
2152
tmp_path = estrndup (intern -> u .file .stream -> orig_path , tmp_path_len );
2153
2153
2154
2154
p1 = strrchr (tmp_path , '/' );
2155
- #if defined( PHP_WIN32 )
2155
+ #ifdef PHP_WIN32
2156
2156
p2 = strrchr (tmp_path , '\\' );
2157
2157
#else
2158
2158
p2 = 0 ;
0 commit comments