Fix CQL stuff does not compile against older YAZ PHPYAZ-27
[phpyaz-moved-to-github.git] / php_yaz.h
index 6022cad..b79e680 100644 (file)
--- a/php_yaz.h
+++ b/php_yaz.h
@@ -6,7 +6,7 @@
 #ifndef PHP_YAZ_H
 #define PHP_YAZ_H
 
-#define PHP_YAZ_VERSION "1.1.7"
+#define PHP_YAZ_VERSION "1.1.8"
 
 #if HAVE_YAZ
 
@@ -36,8 +36,10 @@ PHP_FUNCTION(yaz_es_result);
 PHP_FUNCTION(yaz_present);
 PHP_FUNCTION(yaz_ccl_conf);
 PHP_FUNCTION(yaz_ccl_parse);
+#if YAZ_VERSIONL >= 0x050100
 PHP_FUNCTION(yaz_cql_parse);
 PHP_FUNCTION(yaz_cql_conf);
+#endif
 PHP_FUNCTION(yaz_database);
 PHP_FUNCTION(yaz_sort);
 PHP_FUNCTION(yaz_schema);