From: Michael Wallner Date: Mon, 21 Feb 2005 11:21:52 +0000 (+0000) Subject: * curlbuf struct isn't needed any where else and breaks the php4 build - so no typedef X-Git-Tag: RELEASE_0_5_1~14 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=203fead2e06bc9c3ade855dbda9ad4288ae8f71b;hp=afa962c9ffd8a37a8a80db8fe8619c3d83af31bf * curlbuf struct isn't needed any where else and breaks the php4 build - so no typedef --- diff --git a/php_http.h b/php_http.h index b2bdbe2..c4fc380 100644 --- a/php_http.h +++ b/php_http.h @@ -39,19 +39,6 @@ extern zend_module_entry http_module_entry; #else #ifdef HTTP_HAVE_CURL -typedef struct { - struct { - char *data; - size_t used; - size_t free; - } body; - struct { - char *data; - size_t used; - size_t free; - } hdrs; -} http_curlbuf; - typedef enum { HTTP_GET, HTTP_HEAD, @@ -185,7 +172,18 @@ ZEND_BEGIN_MODULE_GLOBALS(http) time_t lmod; char *allowed_methods; #ifdef HTTP_HAVE_CURL - http_curlbuf curlbuf; + struct { + struct { + char *data; + size_t used; + size_t free; + } body; + struct { + char *data; + size_t used; + size_t free; + } hdrs; + } curlbuf; #endif ZEND_END_MODULE_GLOBALS(http)