Re: Re: pgsql win32 build
| From: | Edin Kadribasic | Date: | Fri, 10 May 2002 01:59:34 +0000 |
| Subject: | Re: Re: pgsql win32 build | ||
| References: | 1 2 3 4 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-83863@lists.php.net to get a copy of this message | ||
Disregard this mail. It's mostly nonsense.
Edin
----- Original Message -----
From: "Edin Kadribasic" <edink@proventum.net>
To: <yasuo_ohgaki@yahoo.com>
Cc: "PHP developer list" <php-dev@lists.php.net>
Sent: Friday, May 10, 2002 3:52 AM
Subject: Re: [PHP-DEV] Re: pgsql win32 build
> One compile problem solved (I'll commit it shortly), another appears:
>
> c:\php4build\HEAD\ext\pgsql\pgsql.c(1505) : fatal error C1057: unexpected
> end of file in macro expansion
>
> The following patch solves PHPAPI problem:
>
> Index: php_pgsql.h
> ===================================================================
> RCS file: /repository/php4/ext/pgsql/php_pgsql.h,v
> retrieving revision 1.45
> diff -u -3 -p -r1.45 php_pgsql.h
> --- php_pgsql.h 25 Apr 2002 01:42:23 -0000 1.45
> +++ php_pgsql.h 10 May 2002 01:47:06 -0000
> @@ -36,6 +36,12 @@ extern zend_module_entry pgsql_module_en
> #ifdef PHP_WIN32
> #define INV_WRITE 0x00020000
> #define INV_READ 0x00040000
> +#undef PHPAPI
> +#ifdef PHP_EXPORTS
> +#define PHPAPI __declspec(dllexport)
> +#else
> +#define PHPAPI __declspec(dllimport)
> +#endif
> #else
> #include <libpq/libpq-fs.h>
> #endif
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>