less intrusive fix
authorMichael Wallner <mike@php.net>
Sat, 10 Mar 2012 06:55:21 +0000 (06:55 +0000)
committerMichael Wallner <mike@php.net>
Sat, 10 Mar 2012 06:55:21 +0000 (06:55 +0000)
php_http_message.h
php_http_message_body.h

index 627e2b90f61dc85f6de114a6b6278a50d9d60b21..8c6c554bc8cfc636e88f928958d987b926e5fc4f 100644 (file)
@@ -25,6 +25,7 @@
                }
 
 typedef php_http_info_type_t php_http_message_type_t;
+typedef struct php_http_message php_http_message_t;
 
 struct php_http_message {
        PHP_HTTP_INFO_IMPL(http, type)
index 22f492a72c167267a1220901f4146d1d9692dcc6..53e565463eb20c4e5c74b3e22bc710bc96dfa89f 100644 (file)
@@ -22,7 +22,7 @@ typedef struct php_http_message_body {
 #endif
 } php_http_message_body_t;
 
-typedef struct php_http_message php_http_message_t;
+struct php_http_message;
 
 PHP_HTTP_API php_http_message_body_t *php_http_message_body_init(php_http_message_body_t *body, php_stream *stream TSRMLS_DC);
 PHP_HTTP_API php_http_message_body_t *php_http_message_body_copy(php_http_message_body_t *from, php_http_message_body_t *to, zend_bool dup_internal_stream_and_contents);
@@ -41,7 +41,7 @@ PHP_HTTP_API const php_stream_statbuf *php_http_message_body_stat(php_http_messa
 #define php_http_message_body_mtime(b) (php_http_message_body_stat((b))->sb.st_mtime)
 PHP_HTTP_API char *php_http_message_body_etag(php_http_message_body_t *body);
 PHP_HTTP_API const char *php_http_message_body_boundary(php_http_message_body_t *body);
-PHP_HTTP_API php_http_message_t *php_http_message_body_split(php_http_message_body_t *body, const char *boundary);
+PHP_HTTP_API struct php_http_message *php_http_message_body_split(php_http_message_body_t *body, const char *boundary);
 
 static inline php_stream *php_http_message_body_stream(php_http_message_body_t *body)
 {