X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_request_api.h;h=437fc90045130dc58830aca89fe49b36ff39f9f7;hp=e3f969b03f45bf456d519b8e10f04894ddf312fc;hb=2b3353e31dd2ca3e06b714688c651c38b3958c44;hpb=b08947e98f1832091c8a9f6dea3799e0524d2822 diff --git a/php_http_request_api.h b/php_http_request_api.h index e3f969b..437fc90 100644 --- a/php_http_request_api.h +++ b/php_http_request_api.h @@ -17,6 +17,7 @@ #ifndef PHP_HTTP_REQUEST_API_H #define PHP_HTTP_REQUEST_API_H +#ifdef HTTP_HAVE_CURL #include "php_http_std_defs.h" #include "phpstr/phpstr.h" @@ -104,9 +105,6 @@ extern void _http_request_data_free_conv(void *conv); #define http_request_conv(ch, rs, rq) _http_request_conv((ch), (rs), (rq) TSRMLS_CC) extern void _http_request_conv(CURL *ch, phpstr* response, phpstr *request TSRMLS_DC); -#define http_request_global_init _http_request_global_init -extern STATUS _http_request_global_init(void); - #define http_request_method_name(m) _http_request_method_name((m) TSRMLS_CC) PHP_HTTP_API const char *_http_request_method_name(http_request_method m TSRMLS_DC); @@ -156,6 +154,7 @@ PHP_HTTP_API STATUS _http_request_ex(CURL *ch, http_request_method meth, char *U #define http_put(u, b, o, i, r) _http_request_ex(NULL, HTTP_PUT, (u), (b), (o), (i), (r) TSRMLS_CC) #define http_put_ex(c, u, b, o, i, r) _http_request_ex((c), HTTP_PUT, (u), (b), (o), (i), (r) TSRMLS_CC) +#endif #endif /* @@ -166,3 +165,4 @@ PHP_HTTP_API STATUS _http_request_ex(CURL *ch, http_request_method meth, char *U * vim600: noet sw=4 ts=4 fdm=marker * vim<600: noet sw=4 ts=4 */ +