From: foobar Date: Sat, 26 Mar 2005 02:19:56 +0000 (+0000) Subject: - Fix windows build (using config.w32 and keeping sync with config.m4) X-Git-Tag: php-5.0.1b1~680 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d203f886659af626275f5982c5553f9e02641dc2;p=php - Fix windows build (using config.w32 and keeping sync with config.m4) --- diff --git a/ext/ingres_ii/config.m4 b/ext/ingres_ii/config.m4 index abfce6bf8b..d0d091ea9e 100644 --- a/ext/ingres_ii/config.m4 +++ b/ext/ingres_ii/config.m4 @@ -8,7 +8,7 @@ PHP_ARG_WITH(ingres, for Ingres II support, if test "$PHP_INGRES" != "no"; then AC_DEFINE(HAVE_II, 1, [Whether you have Ingres II]) - PHP_NEW_EXTENSION(ingres_ii, ii.c, $ext_shared) + PHP_NEW_EXTENSION(ingres, ii.c, $ext_shared) PHP_SUBST(II_SHARED_LIBADD) if test "$PHP_INGRES" = "yes"; then diff --git a/ext/ingres_ii/config.w32 b/ext/ingres_ii/config.w32 index b62a0023b2..9db302cb56 100644 --- a/ext/ingres_ii/config.w32 +++ b/ext/ingres_ii/config.w32 @@ -13,7 +13,7 @@ if (PHP_INGRES != "no") { if (CHECK_HEADER_ADD_INCLUDE("iiapi.h", "CFLAGS_INGRES", ii_system + "\\ingres\\files;" + PHP_INGRES) && CHECK_LIB("iilibapi.lib", "ingres", ii_system + "\\ingres\\lib;" + PHP_INGRES)) { AC_DEFINE('HAVE_II', 1); - EXTENSION("ingres_ii","ii.c"); + EXTENSION("ingres","ii.c"); } else { // ingres is missing files WARNING("Ingres not enabled; libraries and headers not found in " + ii_system); diff --git a/ext/ingres_ii/ii.c b/ext/ingres_ii/ii.c index c6a312bcc7..2678f8633d 100644 --- a/ext/ingres_ii/ii.c +++ b/ext/ingres_ii/ii.c @@ -66,9 +66,9 @@ function_entry ii_functions[] = { {NULL, NULL, NULL} /* Must be the last line in ii_functions[] */ }; -zend_module_entry ingres_ii_module_entry = { +zend_module_entry ingres_module_entry = { STANDARD_MODULE_HEADER, - "ingres_ii", + "ingres", ii_functions, PHP_MINIT(ii), PHP_MSHUTDOWN(ii), @@ -80,7 +80,7 @@ zend_module_entry ingres_ii_module_entry = { }; #ifdef COMPILE_DL_INGRES_II -ZEND_GET_MODULE(ingres_ii) +ZEND_GET_MODULE(ingres) #endif /* php.ini entries diff --git a/ext/ingres_ii/php_ii.h b/ext/ingres_ii/php_ii.h index d15a2503c5..09625cb35f 100644 --- a/ext/ingres_ii/php_ii.h +++ b/ext/ingres_ii/php_ii.h @@ -26,8 +26,8 @@ #if HAVE_II -extern zend_module_entry ingres_ii_module_entry; -#define phpext_ingres_ii_ptr &ingres_ii_module_entry +extern zend_module_entry ingres_module_entry; +#define phpext_ingres_ptr &ingres_module_entry #ifdef PHP_WIN32 #define PHP_II_API __declspec(dllexport) @@ -85,7 +85,7 @@ ZEND_END_MODULE_GLOBALS(ii) #else -#define phpext_ii_ptr NULL +#define phpext_ingres_ptr NULL #endif