From: Michael Wallner Date: Fri, 15 Nov 2013 11:22:47 +0000 (+0000) Subject: fix build with xcode clang X-Git-Tag: RELEASE_2_1_0_RC3~10^2^2~2 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=18750f34ec9a9b16ffd07f54346136ca0f72e9a8;ds=sidebyside fix build with xcode clang --- diff --git a/php_http.h b/php_http.h index bb9c2d0..8e341ca 100644 --- a/php_http.h +++ b/php_http.h @@ -15,10 +15,10 @@ #define PHP_HTTP_EXT_VERSION "2.0.0dev" -zend_module_entry http_module_entry; +extern zend_module_entry http_module_entry; #define phpext_http_ptr &http_module_entry -int http_module_number; +extern int http_module_number; #endif /* PHP_EXT_HTTP_H */ diff --git a/php_http_api.h b/php_http_api.h index 62530b8..ec4a989 100644 --- a/php_http_api.h +++ b/php_http_api.h @@ -34,9 +34,9 @@ #ifdef PHP_WIN32 # define PHP_HTTP_API __declspec(dllexport) #elif defined(__GNUC__) && __GNUC__ >= 4 -# define PHP_HTTP_API __attribute__ ((visibility("default"))) +# define PHP_HTTP_API extern __attribute__ ((visibility("default"))) #else -# define PHP_HTTP_API +# define PHP_HTTP_API extern #endif /* make functions that return SUCCESS|FAILURE more obvious */ diff --git a/php_http_message.h b/php_http_message.h index e94714f..ea747fe 100644 --- a/php_http_message.h +++ b/php_http_message.h @@ -80,7 +80,7 @@ typedef struct php_http_message_object { zval *iterator; } php_http_message_object_t; -zend_class_entry *php_http_message_class_entry; +PHP_HTTP_API zend_class_entry *php_http_message_class_entry; PHP_MINIT_FUNCTION(http_message); PHP_MSHUTDOWN_FUNCTION(http_message);