@@ -411,7 +411,7 @@ void spl_filesystem_info_set_filename(spl_filesystem_object *intern, char *path,
411411 }
412412
413413 p1 = strrchr (intern -> file_name , '/' );
414- #if defined( PHP_WIN32 )
414+ #ifdef PHP_WIN32
415415 p2 = strrchr (intern -> file_name , '\\' );
416416#else
417417 p2 = 0 ;
@@ -435,7 +435,7 @@ static spl_filesystem_object *spl_filesystem_object_create_info(spl_filesystem_o
435435 zend_error_handling error_handling ;
436436
437437 if (!file_path || !file_path_len ) {
438- #if defined( PHP_WIN32 )
438+ #ifdef PHP_WIN32
439439 zend_throw_exception_ex (spl_ce_RuntimeException , 0 , "Cannot create SplFileInfo for empty path" );
440440 if (file_path && !use_copy ) {
441441 efree (file_path );
@@ -1252,7 +1252,7 @@ PHP_METHOD(SplFileInfo, getLinkTarget)
12521252 if (intern -> file_name == NULL ) {
12531253 spl_filesystem_object_get_file_name (intern );
12541254 }
1255- #if defined(PHP_WIN32 ) || HAVE_SYMLINK
1255+ #if defined(PHP_WIN32 ) || defined( HAVE_SYMLINK )
12561256 if (intern -> file_name == NULL ) {
12571257 php_error_docref (NULL , E_WARNING , "Empty filename" );
12581258 RETURN_FALSE ;
@@ -2152,7 +2152,7 @@ PHP_METHOD(SplFileObject, __construct)
21522152 tmp_path = estrndup (intern -> u .file .stream -> orig_path , tmp_path_len );
21532153
21542154 p1 = strrchr (tmp_path , '/' );
2155- #if defined( PHP_WIN32 )
2155+ #ifdef PHP_WIN32
21562156 p2 = strrchr (tmp_path , '\\' );
21572157#else
21582158 p2 = 0 ;
0 commit comments