21
21
#include "php.h"
22
22
#include "php_tidy.h"
23
23
24
- #if HAVE_TIDY
24
+ #ifdef HAVE_TIDY
25
25
26
26
#include "php_ini.h"
27
27
#include "ext/standard/info.h"
28
28
29
- #if HAVE_TIDY_H
29
+ #ifdef HAVE_TIDY_H
30
30
#include "tidy.h"
31
31
#elif HAVE_TIDYP_H
32
32
#include "tidyp.h"
33
33
#endif
34
34
35
- #if HAVE_TIDYBUFFIO_H
35
+ #ifdef HAVE_TIDYBUFFIO_H
36
36
#include "tidybuffio.h"
37
37
#else
38
38
#include "buffio.h"
@@ -865,12 +865,12 @@ static PHP_MINFO_FUNCTION(tidy)
865
865
{
866
866
php_info_print_table_start ();
867
867
php_info_print_table_row (2 , "Tidy support" , "enabled" );
868
- #if HAVE_TIDYBUFFIO_H
868
+ #ifdef HAVE_TIDYBUFFIO_H
869
869
php_info_print_table_row (2 , "libTidy Version" , (char * )tidyLibraryVersion ());
870
- #elif HAVE_TIDYP_H
870
+ #elif defined( HAVE_TIDYP_H )
871
871
php_info_print_table_row (2 , "libtidyp Version" , (char * )tidyVersion ());
872
872
#endif
873
- #if HAVE_TIDYRELEASEDATE
873
+ #ifdef HAVE_TIDYRELEASEDATE
874
874
php_info_print_table_row (2 , "libTidy Release" , (char * )tidyReleaseDate ());
875
875
#endif
876
876
php_info_print_table_end ();
@@ -1139,7 +1139,7 @@ PHP_FUNCTION(tidy_get_release)
1139
1139
RETURN_THROWS ();
1140
1140
}
1141
1141
1142
- #if HAVE_TIDYRELEASEDATE
1142
+ #ifdef HAVE_TIDYRELEASEDATE
1143
1143
RETURN_STRING ((char * )tidyReleaseDate ());
1144
1144
#else
1145
1145
RETURN_STRING ((char * )"unknown" );
@@ -1148,7 +1148,7 @@ PHP_FUNCTION(tidy_get_release)
1148
1148
/* }}} */
1149
1149
1150
1150
1151
- #if HAVE_TIDYOPTGETDOC
1151
+ #ifdef HAVE_TIDYOPTGETDOC
1152
1152
/* {{{ proto string tidy_get_opt_doc(tidy resource, string optname)
1153
1153
Returns the documentation for the given option name */
1154
1154
PHP_FUNCTION (tidy_get_opt_doc )
@@ -1775,7 +1775,7 @@ static void _php_tidy_register_tags(INIT_FUNC_ARGS)
1775
1775
TIDY_TAG_CONST (VAR );
1776
1776
TIDY_TAG_CONST (WBR );
1777
1777
TIDY_TAG_CONST (XMP );
1778
- # if HAVE_TIDYBUFFIO_H
1778
+ # ifdef HAVE_TIDYBUFFIO_H
1779
1779
TIDY_TAG_CONST (ARTICLE );
1780
1780
TIDY_TAG_CONST (ASIDE );
1781
1781
TIDY_TAG_CONST (AUDIO );
0 commit comments