X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pq_params.c;fp=src%2Fphp_pq_params.c;h=9e92226f7b3f83b5fe07e03cb4681768bbd2fa60;hp=259fbb9a13b1c4b6e3c2d243e5106f39c1e9763d;hb=63aa327253c94b4a7dc92c0e7920f63ddac2a1f2;hpb=9ff77f91387b319a8acc6ba2e4e625df983a07f3 diff --git a/src/php_pq_params.c b/src/php_pq_params.c index 259fbb9..9e92226 100644 --- a/src/php_pq_params.c +++ b/src/php_pq_params.c @@ -16,9 +16,7 @@ #include #include -#if PHP_PQ_HAVE_PHP_JSON_H -#include /* we've added the include directory to INCLUDES */ -#endif +#include #include #include @@ -75,12 +73,12 @@ unsigned php_pq_params_add_type_oid(php_pq_params_t *p, Oid type) static zend_string *object_param_to_string(php_pq_params_t *p, zval *zobj, Oid type) { -#if PHP_PQ_HAVE_PHP_JSON_H && defined(PHP_PQ_OID_JSON) +#ifdef PHP_PQ_OID_JSON smart_str str = {0}; #endif switch (type) { -#if PHP_PQ_HAVE_PHP_JSON_H && defined(PHP_PQ_OID_JSON) +#ifdef PHP_PQ_OID_JSON # ifdef PHP_PQ_OID_JSONB case PHP_PQ_OID_JSONB: # endif @@ -207,7 +205,7 @@ static zend_string *array_param_to_string(php_pq_params_t *p, zval *zarr, Oid ty struct apply_to_param_from_array_arg arg = {NULL}; switch (type) { -#if PHP_PQ_HAVE_PHP_JSON_H && defined(PHP_PQ_OID_JSON) +#ifdef PHP_PQ_OID_JSON # ifdef PHP_PQ_OID_JSONB case PHP_PQ_OID_JSONB: # endif