fix build with xcode clang
authorMichael Wallner <mike@php.net>
Fri, 15 Nov 2013 11:22:47 +0000 (11:22 +0000)
committerMichael Wallner <mike@php.net>
Fri, 15 Nov 2013 11:22:47 +0000 (11:22 +0000)
php_http.h
php_http_api.h
php_http_message.h

index bb9c2d0eccbbe77d4ef630d45082ec83638a84b6..8e341ca1d77df8d06e4c76b8cad21fd74527d817 100644 (file)
 
 #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 */
 
index 62530b8edac5471e1c15f46335a9633d420bb9d1..ec4a989d25fdb4b59825ac552e4048983f885d1b 100644 (file)
@@ -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 */
index e94714f5af64896e1e984027c6865460242b5b46..ea747fe671558b30244594b7327c5f2d16df6ba3 100644 (file)
@@ -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);