]> granicus.if.org Git - php/commitdiff
- Allows the Ingres extenstion to be built on Linux/UNIX as well as Windows.
authorGrant Croker <grantc@php.net>
Mon, 23 May 2005 15:33:00 +0000 (15:33 +0000)
committerGrant Croker <grantc@php.net>
Mon, 23 May 2005 15:33:00 +0000 (15:33 +0000)
ext/ingres_ii/config.m4
ext/ingres_ii/php_ii.h

index 42369812524663367332f2c4966888c1dbdeff42..67e2225c3b208f3fcc381164c30ef02ea656e3c3 100644 (file)
@@ -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.c, $ext_shared)
+  PHP_NEW_EXTENSION(ingres_ii, ii.c, $ext_shared)
   PHP_SUBST(II_SHARED_LIBADD)
 
   if test "$PHP_INGRES" = "yes"; then
index 09625cb35fad17de5fb39996ebd5082696b04ff9..c1a85e4e99c0c7638c0bcc73587ef33935b848a3 100644 (file)
    | Contributed by ECL IP'S Software & Services                          |
    |                http://www.eclips-software.com                        |
    |                mailto://idev@eclips-software.com                     |
-   | Author: David Hénot <henot@php.net>                                  |
+   |                Computer Associates, http://ingres.ca.com             |
+   | Authors: David Hénot                                                 |
+   |          Grant Croker                                                |
+   +----------------------------------------------------------------------+
+   | Authors: David Hénot <henot@php.net>                                 |
+   |          Grant Croker <grantc@php.net>                               |
    +----------------------------------------------------------------------+
  */
 
 
 extern zend_module_entry ingres_module_entry;
 #define phpext_ingres_ptr &ingres_module_entry
+/* 
+   Since the buildconf/configure process difers in behaviour between 
+   Linux/UNIX and Windows, the following line allows us to build on 
+   both setups. It's not a perfect solution. 
+*/
+#define phpext_ingres_ii_ptr &ingres_module_entry
+
 
 #ifdef PHP_WIN32
 #define PHP_II_API __declspec(dllexport)