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 bb9c2d0..8e341ca 100644 (file)
 
 #define PHP_HTTP_EXT_VERSION "2.0.0dev"
 
 
 #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
 
 #define phpext_http_ptr &http_module_entry
 
-int http_module_number;
+extern int http_module_number;
 
 #endif /* PHP_EXT_HTTP_H */
 
 
 #endif /* PHP_EXT_HTTP_H */
 
index 62530b8..ec4a989 100644 (file)
@@ -34,9 +34,9 @@
 #ifdef PHP_WIN32
 # define PHP_HTTP_API __declspec(dllexport)
 #elif defined(__GNUC__) && __GNUC__ >= 4
 #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
 #else
-# define PHP_HTTP_API
+# define PHP_HTTP_API extern
 #endif
 
 /* make functions that return SUCCESS|FAILURE more obvious */
 #endif
 
 /* make functions that return SUCCESS|FAILURE more obvious */
index e94714f..ea747fe 100644 (file)
@@ -80,7 +80,7 @@ typedef struct php_http_message_object {
        zval *iterator;
 } php_http_message_object_t;
 
        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);
 
 PHP_MINIT_FUNCTION(http_message);
 PHP_MSHUTDOWN_FUNCTION(http_message);