fixed skeleton to produce the normalized ext version macros

See http://news.php.net/php.pecl.dev/11191 for more info.
This commit is contained in:
Anatol Belski 2013-10-14 14:18:43 +02:00
parent 960b4e81f3
commit 7a038ccbe6
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,8 @@
extern zend_module_entry extname_module_entry;
#define phpext_extname_ptr &extname_module_entry
#define PHP_EXTNAME_VERSION "0.1.0" /* Replace with version number for your extension */
#ifdef PHP_WIN32
# define PHP_EXTNAME_API __declspec(dllexport)
#elif defined(__GNUC__) && __GNUC__ >= 4

View File

@ -41,7 +41,7 @@ zend_module_entry extname_module_entry = {
PHP_RSHUTDOWN(extname), /* Replace with NULL if there's nothing to do at request end */
PHP_MINFO(extname),
#if ZEND_MODULE_API_NO >= 20010901
"0.1", /* Replace with version number for your extension */
PHP_EXTNAME_VERSION,
#endif
STANDARD_MODULE_PROPERTIES
};