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 627e2b9..8c6c554 100644 (file)
@@ -25,6 +25,7 @@
                }
 
 typedef php_http_info_type_t php_http_message_type_t;
                }
 
 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)
 
 struct php_http_message {
        PHP_HTTP_INFO_IMPL(http, type)
index 22f492a..53e5654 100644 (file)
@@ -22,7 +22,7 @@ typedef struct php_http_message_body {
 #endif
 } php_http_message_body_t;
 
 #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);
 
 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);
 #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)
 {
 
 static inline php_stream *php_http_message_body_stream(php_http_message_body_t *body)
 {