mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
- Allows the Ingres extenstion to be built on Linux/UNIX as well as Windows.
This commit is contained in:
parent
2f044696a6
commit
b841969760
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user