@@ -132,7 +132,6 @@ int gdImageColorClosestHWB(gdImagePtr im, int r, int g, int b);
132
132
* IMAGE_FILTER_MAX_ARGS: define the biggest amout of arguments
133
133
* image_filter array in PHP_FUNCTION(imagefilter)
134
134
* */
135
- #if HAVE_GD_BUNDLED
136
135
#define IMAGE_FILTER_NEGATE 0
137
136
#define IMAGE_FILTER_GRAYSCALE 1
138
137
#define IMAGE_FILTER_BRIGHTNESS 2
@@ -159,7 +158,7 @@ static void php_image_filter_selective_blur(INTERNAL_FUNCTION_PARAMETERS);
159
158
static void php_image_filter_mean_removal (INTERNAL_FUNCTION_PARAMETERS );
160
159
static void php_image_filter_smooth (INTERNAL_FUNCTION_PARAMETERS );
161
160
static void php_image_filter_pixelate (INTERNAL_FUNCTION_PARAMETERS );
162
- #endif
161
+
163
162
/* End Section filters declarations */
164
163
static gdImagePtr _php_image_create_from_string (zval * * Data , char * tn , gdImagePtr (* ioctx_func_p )() TSRMLS_DC );
165
164
static void _php_image_create_from (INTERNAL_FUNCTION_PARAMETERS , int image_type , char * tn , gdImagePtr (* func_p )(), gdImagePtr (* ioctx_func_p )());
@@ -855,7 +854,6 @@ ZEND_BEGIN_ARG_INFO(arginfo_png2wbmp, 0)
855
854
ZEND_END_ARG_INFO ()
856
855
#endif
857
856
858
- #ifdef HAVE_GD_BUNDLED
859
857
ZEND_BEGIN_ARG_INFO_EX (arginfo_imagefilter , 0 , 0 , 2 )
860
858
ZEND_ARG_INFO (0 , im )
861
859
ZEND_ARG_INFO (0 , filtertype )
@@ -871,7 +869,6 @@ ZEND_BEGIN_ARG_INFO(arginfo_imageconvolution, 0)
871
869
ZEND_ARG_INFO (0 , div )
872
870
ZEND_ARG_INFO (0 , offset )
873
871
ZEND_END_ARG_INFO ()
874
- #endif
875
872
876
873
#ifdef HAVE_GD_BUNDLED
877
874
ZEND_BEGIN_ARG_INFO (arginfo_imageantialias , 0 )
@@ -1046,10 +1043,8 @@ const zend_function_entry gd_functions[] = {
1046
1043
PHP_FE (imagexbm , arginfo_imagexbm )
1047
1044
#endif
1048
1045
/* gd filters */
1049
- #ifdef HAVE_GD_BUNDLED
1050
1046
PHP_FE (imagefilter , arginfo_imagefilter )
1051
1047
PHP_FE (imageconvolution , arginfo_imageconvolution )
1052
- #endif
1053
1048
1054
1049
{NULL , NULL , NULL }
1055
1050
};
@@ -4738,8 +4733,6 @@ static void _php_image_convert(INTERNAL_FUNCTION_PARAMETERS, int image_type )
4738
4733
#endif /* HAVE_LIBGD */
4739
4734
4740
4735
/* Section Filters */
4741
- #ifdef HAVE_GD_BUNDLED
4742
-
4743
4736
#define PHP_GD_SINGLE_RES \
4744
4737
zval *SIM; \
4745
4738
gdImagePtr im_src; \
@@ -5033,9 +5026,9 @@ PHP_FUNCTION(imageconvolution)
5033
5026
}
5034
5027
}
5035
5028
/* }}} */
5036
-
5037
5029
/* End section: Filters */
5038
5030
5031
+ #ifdef HAVE_GD_BUNDLED
5039
5032
/* {{{ proto bool imageantialias(resource im, bool on)
5040
5033
Should antialiased functions used or not*/
5041
5034
PHP_FUNCTION (imageantialias )
0 commit comments