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=6ac55af7c14c56f6c03ef48f96a545d0fe375d63;hp=4a6ba68ca33ec8a42a7c77f3a4dcf03c37eef4b8;hb=c62ffa9e8cf262c412efeb84c2523d1c78897282;hpb=18db85e4b2f6d221cb6f09838dc7ac7f873e9ba6 diff --git a/src/php_pq_params.c b/src/php_pq_params.c index 4a6ba68..6ac55af 100644 --- a/src/php_pq_params.c +++ b/src/php_pq_params.c @@ -17,7 +17,9 @@ #include #include #include +#ifdef HAVE_JSON #include +#endif #include @@ -86,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) { -#ifdef PHP_PQ_OID_JSON +#if HAVE_JSON && defined(PHP_PQ_OID_JSON) # ifdef PHP_PQ_OID_JSONB case PHP_PQ_OID_JSONB: # endif @@ -225,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) { -#ifdef PHP_PQ_OID_JSON +#if HAVE_JSON && defined(PHP_PQ_OID_JSON) # ifdef PHP_PQ_OID_JSONB case PHP_PQ_OID_JSONB: # endif