diff options
| author | Stig Bakken <ssb@php.net> | 1999-12-01 22:59:45 +0000 |
|---|---|---|
| committer | Stig Bakken <ssb@php.net> | 1999-12-01 22:59:45 +0000 |
| commit | 2467dd6d05d97805cfbe027f9be4b4cfac8d9a25 (patch) | |
| tree | a128cce78f8bf36e0bfffe9871bec480c5afc157 /ext/mysql | |
| parent | 93536507f686a9dfb041b4583cd37cf4c6c4c37c (diff) | |
| download | php-git-2467dd6d05d97805cfbe027f9be4b4cfac8d9a25.tar.gz | |
@Fix some warnings when compiling in maintainer-mode (Stig)
@Made mysql and gd work as shared extensions again (Stig)
- Fixed some warnings in maintainer-mode.
- Made mysql and gd work as shared extensions again by defining
COMPILE_DL if PIC is defined.
# We need a better solution for building .so extensions than this
# PIC/COMPILE_DL hack!
Diffstat (limited to 'ext/mysql')
| -rw-r--r-- | ext/mysql/php_mysql.c | 8 | ||||
| -rw-r--r-- | ext/mysql/php_mysql.h | 6 |
2 files changed, 9 insertions, 5 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index cb198be677..aa9bb2757b 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -24,8 +24,12 @@ * ? Safe mode implementation */ -#if COMPILE_DL -#include "dl/phpdl.h" +#ifdef PIC +# define COMPILE_DL 1 +#endif + +#ifdef COMPILE_DL +# include "dl/phpdl.h" #endif #include "php.h" diff --git a/ext/mysql/php_mysql.h b/ext/mysql/php_mysql.h index 80bd0d6793..e998f8e56c 100644 --- a/ext/mysql/php_mysql.h +++ b/ext/mysql/php_mysql.h @@ -22,9 +22,9 @@ #ifndef _PHP_MYSQL_H #define _PHP_MYSQL_H -#if COMPILE_DL -#undef HAVE_MYSQL -#define HAVE_MYSQL 1 +#ifdef COMPILE_DL +# undef HAVE_MYSQL +# define HAVE_MYSQL 1 #endif #if WIN32||WINNT |
