Skip to content

Commit c7055f5

Browse files
committed
Fix [-Wundef] warning in XMLReader extension
1 parent 7fa0d30 commit c7055f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/xmlreader/php_xmlreader.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,9 +1055,9 @@ PHP_METHOD(XMLReader, XML)
10551055

10561056
if (inputbfr != NULL) {
10571057
/* Get the URI of the current script so that we can set the base directory in libxml */
1058-
#if HAVE_GETCWD
1058+
#ifdef HAVE_GETCWD
10591059
directory = VCWD_GETCWD(resolved_path, MAXPATHLEN);
1060-
#elif HAVE_GETWD
1060+
#elif defined(HAVE_GETWD)
10611061
directory = VCWD_GETWD(resolved_path);
10621062
#endif
10631063
if (directory) {

0 commit comments

Comments
 (0)