- Allows the Ingres extenstion to be built on Linux/UNIX as well as Windows.

This commit is contained in:
Grant Croker 2005-05-23 15:33:00 +00:00
parent 2f044696a6
commit b841969760
2 changed files with 14 additions and 2 deletions

View 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

View File

@ -15,7 +15,12 @@
| 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> |
+----------------------------------------------------------------------+
*/
@ -28,6 +33,13 @@
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)