Skip to content

Commit e6bf4af

Browse files
committed
Fix [-Wundef] warning in internal_functions_win32.c
1 parent 5ee023e commit e6bf4af

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

main/internal_functions_win32.c

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -58,98 +58,98 @@
5858
#endif
5959
#include "ext/standard/reg.h"
6060
#include "ext/pcre/php_pcre.h"
61-
#if HAVE_UODBC
61+
#ifdef HAVE_UODBC
6262
#include "ext/odbc/php_odbc.h"
6363
#endif
64-
#if HAVE_PHP_SESSION
64+
#ifdef HAVE_PHP_SESSION
6565
#include "ext/session/php_session.h"
6666
#endif
67-
#if HAVE_MBSTRING
67+
#ifdef HAVE_MBSTRING
6868
#include "ext/mbstring/mbstring.h"
6969
#endif
70-
#if HAVE_TOKENIZER
70+
#ifdef HAVE_TOKENIZER
7171
#include "ext/tokenizer/php_tokenizer.h"
7272
#endif
73-
#if HAVE_ZLIB
73+
#ifdef HAVE_ZLIB
7474
#include "ext/zlib/php_zlib.h"
7575
#endif
76-
#if HAVE_LIBXML
76+
#ifdef HAVE_LIBXML
7777
#include "ext/libxml/php_libxml.h"
78-
#if HAVE_DOM
78+
#ifdef HAVE_DOM
7979
#include "ext/dom/php_dom.h"
8080
#endif
81-
#if HAVE_SIMPLEXML
81+
#ifdef HAVE_SIMPLEXML
8282
#include "ext/simplexml/php_simplexml.h"
8383
#endif
8484
#endif
85-
#if HAVE_XML
85+
#ifdef HAVE_XML
8686
#include "ext/xml/php_xml.h"
8787
#endif
8888
#include "ext/com_dotnet/php_com_dotnet.h"
8989
#include "ext/spl/php_spl.h"
90-
#if HAVE_XML && HAVE_XMLREADER
90+
#if defined(HAVE_XML) && defined(HAVE_XMLREADER)
9191
#include "ext/xmlreader/php_xmlreader.h"
9292
#endif
93-
#if HAVE_XML && HAVE_XMLWRITER
93+
#if defined(HAVE_XML) && defined(HAVE_XMLWRITER)
9494
#include "ext/xmlwriter/php_xmlwriter.h"
9595
#endif
9696
/* }}} */
9797

9898
/* {{{ php_builtin_extensions[] */
9999
static zend_module_entry * const php_builtin_extensions[] = {
100100
phpext_standard_ptr
101-
#if HAVE_BCMATH
101+
#ifdef HAVE_BCMATH
102102
,phpext_bcmath_ptr
103103
#endif
104-
#if HAVE_CALENDAR
104+
#ifdef HAVE_CALENDAR
105105
,phpext_calendar_ptr
106106
#endif
107107
,phpext_com_dotnet_ptr
108-
#if HAVE_CTYPE
108+
#ifdef HAVE_CTYPE
109109
,phpext_ctype_ptr
110110
#endif
111111
,phpext_date_ptr
112-
#if HAVE_FTP
112+
#ifdef HAVE_FTP
113113
,phpext_ftp_ptr
114114
#endif
115115
,phpext_hash_ptr
116-
#if HAVE_ICONV
116+
#ifdef HAVE_ICONV
117117
,phpext_iconv_ptr
118118
#endif
119-
#if HAVE_MBSTRING
119+
#ifdef HAVE_MBSTRING
120120
,phpext_mbstring_ptr
121121
#endif
122-
#if HAVE_UODBC
122+
#ifdef HAVE_UODBC
123123
,phpext_odbc_ptr
124124
#endif
125125
,phpext_pcre_ptr
126126
,phpext_reflection_ptr
127-
#if HAVE_PHP_SESSION
127+
#ifdef HAVE_PHP_SESSION
128128
,phpext_session_ptr
129129
#endif
130-
#if HAVE_TOKENIZER
130+
#ifdef HAVE_TOKENIZER
131131
,phpext_tokenizer_ptr
132132
#endif
133-
#if HAVE_ZLIB
133+
#ifdef HAVE_ZLIB
134134
,phpext_zlib_ptr
135135
#endif
136-
#if HAVE_LIBXML
136+
#ifdef HAVE_LIBXML
137137
,phpext_libxml_ptr
138-
#if HAVE_DOM
138+
#ifdef HAVE_DOM
139139
,phpext_dom_ptr
140140
#endif
141-
#if HAVE_SIMPLEXML
141+
#ifdef HAVE_SIMPLEXML
142142
,phpext_simplexml_ptr
143143
#endif
144144
#endif
145-
#if HAVE_XML
145+
#ifdef HAVE_XML
146146
,phpext_xml_ptr
147147
#endif
148148
,phpext_spl_ptr
149-
#if HAVE_XML && HAVE_XMLREADER
149+
#if defined(HAVE_XML) && defined(HAVE_XMLREADER)
150150
,phpext_xmlreader_ptr
151151
#endif
152-
#if HAVE_XML && HAVE_XMLWRITER
152+
#if defined(HAVE_XML) && defined(HAVE_XMLWRITER)
153153
,phpext_xmlwriter_ptr
154154
#endif
155155
};

0 commit comments

Comments
 (0)