better checks for json support
[m6w6/ext-pq] / src / php_pqres.c
index a9ab9c7c562c67d733ff7f7f1b0a4cfcb0d9af24..2853275dfc85fbc72984fa613ea2cbc43dbfe337 100644 (file)
 #include <php.h>
 
 #include <ext/spl/spl_iterators.h>
 #include <php.h>
 
 #include <ext/spl/spl_iterators.h>
-#if HAVE_JSON
-#include <ext/json/php_json.h>
+#if PHP_PQ_HAVE_PHP_JSON_H
+#include <php_json.h> /* we've added the include directory to INCLUDES */
 #endif
 #endif
+
 #include <libpq-events.h>
 
 #include "php_pq.h"
 #include <libpq-events.h>
 
 #include "php_pq.h"