Skip to content

Commit 336998f

Browse files
committed
Fix [-Wundef] warning in XLS extension
1 parent c7055f5 commit 336998f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ext/xsl/php_xsl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ PHP_MINIT_FUNCTION(xsl)
131131
xsl_object_handlers.free_obj = xsl_objects_free_storage;
132132

133133
REGISTER_XSL_CLASS(ce, "XSLTProcessor", NULL, class_XSLTProcessor_methods, xsl_xsltprocessor_class_entry);
134-
#if HAVE_XSL_EXSLT
134+
#ifdef HAVE_XSL_EXSLT
135135
exsltRegisterAll();
136136
#endif
137137

@@ -158,7 +158,7 @@ PHP_MINIT_FUNCTION(xsl)
158158
REGISTER_LONG_CONSTANT("LIBXSLT_VERSION", LIBXSLT_VERSION, CONST_CS | CONST_PERSISTENT);
159159
REGISTER_STRING_CONSTANT("LIBXSLT_DOTTED_VERSION", LIBXSLT_DOTTED_VERSION, CONST_CS | CONST_PERSISTENT);
160160

161-
#if HAVE_XSL_EXSLT
161+
#ifdef HAVE_XSL_EXSLT
162162
REGISTER_LONG_CONSTANT("LIBEXSLT_VERSION", LIBEXSLT_VERSION, CONST_CS | CONST_PERSISTENT);
163163
REGISTER_STRING_CONSTANT("LIBEXSLT_DOTTED_VERSION", LIBEXSLT_DOTTED_VERSION, CONST_CS | CONST_PERSISTENT);
164164
#endif
@@ -265,7 +265,7 @@ PHP_MINFO_FUNCTION(xsl)
265265
snprintf(buffer, 128, "%d.%d.%d", major, minor, subminor);
266266
php_info_print_table_row(2, "libxslt compiled against libxml Version", buffer);
267267
}
268-
#if HAVE_XSL_EXSLT
268+
#ifdef HAVE_XSL_EXSLT
269269
php_info_print_table_row(2, "EXSLT", "enabled");
270270
php_info_print_table_row(2, "libexslt Version", LIBEXSLT_DOTTED_VERSION);
271271
#endif

ext/xsl/php_xsl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extern zend_module_entry xsl_module_entry;
3232
#include <libxslt/xsltutils.h>
3333
#include <libxslt/transform.h>
3434
#include <libxslt/security.h>
35-
#if HAVE_XSL_EXSLT
35+
#ifdef HAVE_XSL_EXSLT
3636
#include <libexslt/exslt.h>
3737
#include <libexslt/exsltconfig.h>
3838
#endif

ext/xsl/xsltprocessor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ PHP_METHOD(XSLTProcessor, hasExsltSupport)
862862
RETURN_THROWS();
863863
}
864864

865-
#if HAVE_XSL_EXSLT
865+
#ifdef HAVE_XSL_EXSLT
866866
RETURN_TRUE;
867867
#else
868868
RETURN_FALSE;

0 commit comments

Comments
 (0)