]> granicus.if.org Git - php/commitdiff
Fix [-Wundef] warning in XMLReader extension
authorGeorge Peter Banyard <girgias@php.net>
Wed, 20 May 2020 12:14:13 +0000 (14:14 +0200)
committerGeorge Peter Banyard <girgias@php.net>
Wed, 20 May 2020 14:29:51 +0000 (16:29 +0200)
ext/xmlreader/php_xmlreader.c

index 50715f3db02446629a0ccd0edc91bff29237e4c3..9fb10465c371e7f8bafc5f44905de1f275b3df55 100644 (file)
@@ -1055,9 +1055,9 @@ PHP_METHOD(XMLReader, XML)
 
     if (inputbfr != NULL) {
 /* Get the URI of the current script so that we can set the base directory in libxml */
-#if HAVE_GETCWD
+#ifdef HAVE_GETCWD
                directory = VCWD_GETCWD(resolved_path, MAXPATHLEN);
-#elif HAVE_GETWD
+#elif defined(HAVE_GETWD)
                directory = VCWD_GETWD(resolved_path);
 #endif
                if (directory) {