#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 */
#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 */
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);