Skip to content

Commit 48021fa

Browse files
committed
Fix [-Wundef] warning in internal_functions_win32.c
1 parent e993b6f commit 48021fa

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
@@ -59,39 +59,39 @@
5959
#endif
6060
#include "ext/standard/reg.h"
6161
#include "ext/pcre/php_pcre.h"
62-
#if HAVE_UODBC
62+
#ifdef HAVE_UODBC
6363
#include "ext/odbc/php_odbc.h"
6464
#endif
65-
#if HAVE_PHP_SESSION
65+
#ifdef HAVE_PHP_SESSION
6666
#include "ext/session/php_session.h"
6767
#endif
68-
#if HAVE_MBSTRING
68+
#ifdef HAVE_MBSTRING
6969
#include "ext/mbstring/mbstring.h"
7070
#endif
71-
#if HAVE_TOKENIZER
71+
#ifdef HAVE_TOKENIZER
7272
#include "ext/tokenizer/php_tokenizer.h"
7373
#endif
74-
#if HAVE_ZLIB
74+
#ifdef HAVE_ZLIB
7575
#include "ext/zlib/php_zlib.h"
7676
#endif
77-
#if HAVE_LIBXML
77+
#ifdef HAVE_LIBXML
7878
#include "ext/libxml/php_libxml.h"
79-
#if HAVE_DOM
79+
#ifdef HAVE_DOM
8080
#include "ext/dom/php_dom.h"
8181
#endif
82-
#if HAVE_SIMPLEXML
82+
#ifdef HAVE_SIMPLEXML
8383
#include "ext/simplexml/php_simplexml.h"
8484
#endif
8585
#endif
86-
#if HAVE_XML
86+
#ifdef HAVE_XML
8787
#include "ext/xml/php_xml.h"
8888
#endif
8989
#include "ext/com_dotnet/php_com_dotnet.h"
9090
#include "ext/spl/php_spl.h"
91-
#if HAVE_XML && HAVE_XMLREADER
91+
#if defined(HAVE_XML) && defined(HAVE_XMLREADER)
9292
#include "ext/xmlreader/php_xmlreader.h"
9393
#endif
94-
#if HAVE_XML && HAVE_XMLWRITER
94+
#if defined(HAVE_XML) && defined(HAVE_XMLWRITER)
9595
#include "ext/xmlwriter/php_xmlwriter.h"
9696
#endif
9797
/* }}} */
@@ -100,58 +100,58 @@
100100
*/
101101
static zend_module_entry * const php_builtin_extensions[] = {
102102
phpext_standard_ptr
103-
#if HAVE_BCMATH
103+
#ifdef HAVE_BCMATH
104104
,phpext_bcmath_ptr
105105
#endif
106-
#if HAVE_CALENDAR
106+
#ifdef HAVE_CALENDAR
107107
,phpext_calendar_ptr
108108
#endif
109109
,phpext_com_dotnet_ptr
110-
#if HAVE_CTYPE
110+
#ifdef HAVE_CTYPE
111111
,phpext_ctype_ptr
112112
#endif
113113
,phpext_date_ptr
114-
#if HAVE_FTP
114+
#ifdef HAVE_FTP
115115
,phpext_ftp_ptr
116116
#endif
117117
,phpext_hash_ptr
118-
#if HAVE_ICONV
118+
#ifdef HAVE_ICONV
119119
,phpext_iconv_ptr
120120
#endif
121-
#if HAVE_MBSTRING
121+
#ifdef HAVE_MBSTRING
122122
,phpext_mbstring_ptr
123123
#endif
124-
#if HAVE_UODBC
124+
#ifdef HAVE_UODBC
125125
,phpext_odbc_ptr
126126
#endif
127127
,phpext_pcre_ptr
128128
,phpext_reflection_ptr
129-
#if HAVE_PHP_SESSION
129+
#ifdef HAVE_PHP_SESSION
130130
,phpext_session_ptr
131131
#endif
132-
#if HAVE_TOKENIZER
132+
#ifdef HAVE_TOKENIZER
133133
,phpext_tokenizer_ptr
134134
#endif
135-
#if HAVE_ZLIB
135+
#ifdef HAVE_ZLIB
136136
,phpext_zlib_ptr
137137
#endif
138-
#if HAVE_LIBXML
138+
#ifdef HAVE_LIBXML
139139
,phpext_libxml_ptr
140-
#if HAVE_DOM
140+
#ifdef HAVE_DOM
141141
,phpext_dom_ptr
142142
#endif
143-
#if HAVE_SIMPLEXML
143+
#ifdef HAVE_SIMPLEXML
144144
,phpext_simplexml_ptr
145145
#endif
146146
#endif
147-
#if HAVE_XML
147+
#ifdef HAVE_XML
148148
,phpext_xml_ptr
149149
#endif
150150
,phpext_spl_ptr
151-
#if HAVE_XML && HAVE_XMLREADER
151+
#if defined(HAVE_XML) && defined(HAVE_XMLREADER)
152152
,phpext_xmlreader_ptr
153153
#endif
154-
#if HAVE_XML && HAVE_XMLWRITER
154+
#if defined(HAVE_XML) && defined(HAVE_XMLWRITER)
155155
,phpext_xmlwriter_ptr
156156
#endif
157157
};

0 commit comments

Comments
 (0)