X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fphp_pq_params.c;h=9554ef70f23e6f59442b0af7fbab4496a6b76f93;hb=0e66a82238ad0aacbf646d0016193a064a4b7ecb;hp=6ac55af7c14c56f6c03ef48f96a545d0fe375d63;hpb=e39a656855be0ccc88fd0f90910eb90acd6e4a9f;p=m6w6%2Fext-pq diff --git a/src/php_pq_params.c b/src/php_pq_params.c index 6ac55af..9554ef7 100644 --- a/src/php_pq_params.c +++ b/src/php_pq_params.c @@ -17,8 +17,8 @@ #include #include #include -#ifdef HAVE_JSON -#include +#if PHP_PQ_HAVE_PHP_JSON_H +#include /* we've added the include directory to INCLUDES */ #endif #include @@ -88,7 +88,7 @@ static zval *object_param_to_string(php_pq_params_t *p, zval *zobj, Oid type TSR smart_str str = {0}; switch (type) { -#if HAVE_JSON && defined(PHP_PQ_OID_JSON) +#if PHP_PQ_HAVE_PHP_JSON_H && defined(PHP_PQ_OID_JSON) # ifdef PHP_PQ_OID_JSONB case PHP_PQ_OID_JSONB: # endif @@ -227,7 +227,7 @@ static zval *array_param_to_string(php_pq_params_t *p, zval *zarr, Oid type TSRM struct apply_to_param_from_array_arg arg = {NULL}; switch (type) { -#if HAVE_JSON && defined(PHP_PQ_OID_JSON) +#if PHP_PQ_HAVE_PHP_JSON_H && defined(PHP_PQ_OID_JSON) # ifdef PHP_PQ_OID_JSONB case PHP_PQ_OID_JSONB: # endif