* curlbuf struct isn't needed any where else and breaks the php4 build - so no typedef
authorMichael Wallner <mike@php.net>
Mon, 21 Feb 2005 11:21:52 +0000 (11:21 +0000)
committerMichael Wallner <mike@php.net>
Mon, 21 Feb 2005 11:21:52 +0000 (11:21 +0000)
php_http.h

index b2bdbe24b63d408c728ac57afc9e3e7d23ad2593..c4fc38050873776aad9c82ded570cd42c8fd410f 100644 (file)
@@ -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)