summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/bcmath/php_bcmath.h5
-rw-r--r--ext/db/php_db.h2
-rw-r--r--ext/exif/config.m42
-rw-r--r--ext/exif/exif.c2
-rw-r--r--ext/exif/php_exif.h6
-rw-r--r--ext/ftp/php_ftp.h5
-rw-r--r--ext/gd/php_gd.h5
-rw-r--r--ext/hyperwave/php_hyperwave.h5
-rw-r--r--ext/icap/php_icap.h14
-rw-r--r--ext/informix/php_informix.h6
-rw-r--r--ext/interbase/php_interbase.h5
-rw-r--r--ext/mcal/php_mcal.h14
-rw-r--r--ext/msql/php_msql.h5
-rw-r--r--ext/mysql/php_mysql.h7
-rw-r--r--ext/odbc/php_velocis.h5
-rw-r--r--ext/pgsql/php_pgsql.h5
-rw-r--r--ext/posix/php_posix.h4
-rw-r--r--ext/recode/php_recode.h5
-rw-r--r--ext/snmp/php_snmp.h4
-rw-r--r--ext/swf/php_swf.h5
-rw-r--r--ext/sybase/php_sybase.h5
-rw-r--r--ext/sybase_ct/php_sybase_ct.h5
-rw-r--r--ext/sysvsem/php_sysvsem.h5
-rw-r--r--ext/sysvshm/php_sysvshm.h6
-rw-r--r--ext/yp/php_yp.h5
-rw-r--r--ext/zlib/php_zlib.h5
26 files changed, 7 insertions, 135 deletions
diff --git a/ext/bcmath/php_bcmath.h b/ext/bcmath/php_bcmath.h
index f9be3f53b1..1a506481ea 100644
--- a/ext/bcmath/php_bcmath.h
+++ b/ext/bcmath/php_bcmath.h
@@ -33,11 +33,6 @@
#ifndef _PHP_BCMATH_H
#define _PHP_BCMATH_H
-#if COMPILE_DL
-#undef WITH_BCMATH
-#define WITH_BCMATH 1
-#endif
-
#if WITH_BCMATH
extern zend_module_entry bcmath_module_entry;
diff --git a/ext/db/php_db.h b/ext/db/php_db.h
index 61b45471ec..d65a94e04d 100644
--- a/ext/db/php_db.h
+++ b/ext/db/php_db.h
@@ -57,7 +57,7 @@ typedef struct dbm_info {
because the dbm module will be external, and we
do not want flatfile compiled staticly
*/
-#if defined(MSVC5) && !defined(COMPILE_DL)
+#if defined(PHP_WIN32) && !defined(COMPILE_DL_DB)
#undef phpext_db_ptr
#define phpext_db_ptr NULL
#endif
diff --git a/ext/exif/config.m4 b/ext/exif/config.m4
index 4ef1138f1b..53dabb6bd8 100644
--- a/ext/exif/config.m4
+++ b/ext/exif/config.m4
@@ -6,6 +6,6 @@ dnl Make sure that the comment is aligned:
[ --enable-exif Enable exif support])
if test "$PHP_EXIF" != "no"; then
- AC_DEFINE(PHP_EXIF, 1, [Whether you want exif support])
+ AC_DEFINE(HAVE_EXIF, 1, [Whether you want exif support])
PHP_EXTENSION(exif, $ext_shared)
fi
diff --git a/ext/exif/exif.c b/ext/exif/exif.c
index 5c52c194e6..d11cd38597 100644
--- a/ext/exif/exif.c
+++ b/ext/exif/exif.c
@@ -38,7 +38,7 @@
*/
#include "php.h"
-#if PHP_EXIF
+#if HAVE_EXIF
#include "php_exif.h"
#include <math.h>
diff --git a/ext/exif/php_exif.h b/ext/exif/php_exif.h
index 2f0bcff864..fe3699c015 100644
--- a/ext/exif/php_exif.h
+++ b/ext/exif/php_exif.h
@@ -15,12 +15,8 @@
| Authors: Rasmus Lerdorf <rasmus@php.net> |
+----------------------------------------------------------------------+
*/
-#ifdef COMPILE_DL || COMPILE_DL_EXIF
-# undef PHP_EXIF
-# define PHP_EXIF 1
-#endif
-#if PHP_EXIF
+#if HAVE_EXIF
extern zend_module_entry exif_module_entry;
#define phpext_exif_ptr &exif_module_entry
diff --git a/ext/ftp/php_ftp.h b/ext/ftp/php_ftp.h
index 08bece1b30..e602fe79fc 100644
--- a/ext/ftp/php_ftp.h
+++ b/ext/ftp/php_ftp.h
@@ -33,11 +33,6 @@
#ifndef _INCLUDED_FTP_H
#define _INCLUDED_FTP_H
-#if COMPILE_DL
-#undef HAVE_FTP
-#define HAVE_FTP 1
-#endif
-
#if HAVE_FTP
extern zend_module_entry php_ftp_module_entry;
diff --git a/ext/gd/php_gd.h b/ext/gd/php_gd.h
index c8c49e9ee6..56847879b2 100644
--- a/ext/gd/php_gd.h
+++ b/ext/gd/php_gd.h
@@ -40,11 +40,6 @@
#define ENABLE_GD_TTF
#endif
-#if COMPILE_DL
-#undef HAVE_LIBGD
-#define HAVE_LIBGD 1
-#endif
-
#if HAVE_LIBGD
#include <gd.h>
diff --git a/ext/hyperwave/php_hyperwave.h b/ext/hyperwave/php_hyperwave.h
index dcde3aeedb..067162bd83 100644
--- a/ext/hyperwave/php_hyperwave.h
+++ b/ext/hyperwave/php_hyperwave.h
@@ -28,11 +28,6 @@
#ifndef _HW_H
#define _HW_H
-#if COMPILE_DL
-#undef HYPERWAVE
-#define HYPERWAVE 1
-#endif
-
#ifdef PHP_WIN32
#define PHP_HW_API __declspec(dllexport)
#else
diff --git a/ext/icap/php_icap.h b/ext/icap/php_icap.h
index 91ceacd2c7..266b297f17 100644
--- a/ext/icap/php_icap.h
+++ b/ext/icap/php_icap.h
@@ -3,17 +3,9 @@
#ifndef _INCLUDED_ICAP_H
#define _INCLUDED_ICAP_H
-#if COMPILE_DL
-#undef HAVE_ICAP
-#define HAVE_ICAP 1
-#endif
-
#if HAVE_ICAP
-#ifdef THREAD_SAFE
-#include "tls.h"
-#endif
-#ifndef MSVC5
+#ifndef PHP_WIN32
#include "build-defs.h"
#endif
@@ -48,7 +40,3 @@ PHP_FUNCTION(icap_list_alarms);
#endif
-
-
-
-
diff --git a/ext/informix/php_informix.h b/ext/informix/php_informix.h
index d5595ce2c9..6814deed73 100644
--- a/ext/informix/php_informix.h
+++ b/ext/informix/php_informix.h
@@ -34,12 +34,6 @@
#ifndef _PHP_IFX_H
#define _PHP_IFX_H
-
-#if COMPILE_DL
-#undef HAVE_IFX
-#define HAVE_IFX 1
-#endif
-
#ifdef PHP_WIN32
#define PHP_IFX_API __declspec(dllexport)
#else
diff --git a/ext/interbase/php_interbase.h b/ext/interbase/php_interbase.h
index de059c0df0..ba0a27c9c4 100644
--- a/ext/interbase/php_interbase.h
+++ b/ext/interbase/php_interbase.h
@@ -22,11 +22,6 @@
#ifndef _PHP_IBASE_H
#define _PHP_IBASE_H
-#if COMPILE_DL
-#undef HAVE_IBASE
-#define HAVE_IBASE 1
-#endif
-
#if HAVE_IBASE
#include <ibase.h>
diff --git a/ext/mcal/php_mcal.h b/ext/mcal/php_mcal.h
index b17769d62c..e5b3b23ee2 100644
--- a/ext/mcal/php_mcal.h
+++ b/ext/mcal/php_mcal.h
@@ -3,17 +3,9 @@
#ifndef _INCLUDED_MCAL_H
#define _INCLUDED_MCAL_H
-#if COMPILE_DL
-#undef HAVE_MCAL
-#define HAVE_MCAL 1
-#endif
-
#if HAVE_MCAL
-#ifdef THREAD_SAFE
-#include "tls.h"
-#endif
-#ifndef MSVC5
+#ifndef PHP_WIN32
#include "build-defs.h"
#endif
@@ -84,7 +76,3 @@ PHP_FUNCTION(mcal_fetch_current_stream_event);
#endif
-
-
-
-
diff --git a/ext/msql/php_msql.h b/ext/msql/php_msql.h
index 3c2b33b33b..dd115727b8 100644
--- a/ext/msql/php_msql.h
+++ b/ext/msql/php_msql.h
@@ -33,11 +33,6 @@
#ifndef _PHP_MSQL_H
#define _PHP_MSQL_H
-#if COMPILE_DL
-#undef HAVE_MSQL
-#define HAVE_MSQL 1
-#endif
-
#if HAVE_MSQL
extern zend_module_entry msql_module_entry;
diff --git a/ext/mysql/php_mysql.h b/ext/mysql/php_mysql.h
index 8342f4ffe5..5b98e82994 100644
--- a/ext/mysql/php_mysql.h
+++ b/ext/mysql/php_mysql.h
@@ -22,11 +22,6 @@
#ifndef _PHP_MYSQL_H
#define _PHP_MYSQL_H
-#ifdef COMPILE_DL
-# undef HAVE_MYSQL
-# define HAVE_MYSQL 1
-#endif
-
#ifdef PHP_WIN32
#define PHP_MYSQL_API __declspec(dllexport)
#else
@@ -35,7 +30,7 @@
#if HAVE_MYSQL
-#ifdef __ZTS
+#ifdef ZTS
#include "TSRM.h"
#endif
diff --git a/ext/odbc/php_velocis.h b/ext/odbc/php_velocis.h
index d117cd4284..cfcd92af62 100644
--- a/ext/odbc/php_velocis.h
+++ b/ext/odbc/php_velocis.h
@@ -33,11 +33,6 @@
#ifndef _PHP_VELOCIS_H
#define _PHP_VELOCIS_H
-#if COMPILE_DL
-#undef HAVE_VELOCIS
-#define HAVE_VELOCIS 1
-#endif
-
#if defined(HAVE_VELOCIS) && !HAVE_UODBC
#define UNIX
#include <sql.h>
diff --git a/ext/pgsql/php_pgsql.h b/ext/pgsql/php_pgsql.h
index 0ce9756cd4..6ce51480a5 100644
--- a/ext/pgsql/php_pgsql.h
+++ b/ext/pgsql/php_pgsql.h
@@ -22,11 +22,6 @@
#ifndef _PHP_PGSQL_H
#define _PHP_PGSQL_H
-#ifdef COMPILE_DL_PGSQL
-#undef HAVE_PGSQL
-#define HAVE_PGSQL 1
-#endif
-
#if HAVE_PGSQL
extern zend_module_entry pgsql_module_entry;
diff --git a/ext/posix/php_posix.h b/ext/posix/php_posix.h
index a6cda8b48b..be55a7d36d 100644
--- a/ext/posix/php_posix.h
+++ b/ext/posix/php_posix.h
@@ -33,11 +33,7 @@
#ifndef _PHP_POSIX_H
#define _PHP_POSIX_H
-#if COMPILE_DL
-#define HAVE_POSIX 1
-#endif
-#if HAVE_POSIX
#ifndef DLEXPORT
#define DLEXPORT
#endif
diff --git a/ext/recode/php_recode.h b/ext/recode/php_recode.h
index e20494087b..faaf08a867 100644
--- a/ext/recode/php_recode.h
+++ b/ext/recode/php_recode.h
@@ -22,11 +22,6 @@
#ifndef _PHP_RECODE_H
#define _PHP_RECODE_H
-#ifdef COMPILE_DL_RECODE
-#undef HAVE_LIBRECODE
-#define HAVE_LIBRECODE 1
-#endif
-
#ifdef PHP_WIN32
#define PHP_MYSQL_API __declspec(dllexport)
#else
diff --git a/ext/snmp/php_snmp.h b/ext/snmp/php_snmp.h
index cf88163b66..73d4124521 100644
--- a/ext/snmp/php_snmp.h
+++ b/ext/snmp/php_snmp.h
@@ -22,10 +22,6 @@
#ifndef _PHP_SNMP_H
#define _PHP_SNMP_H
-#if COMPILE_DL
-#undef HAVE_SNMP
-#define HAVE_SNMP 1
-#endif
#if HAVE_SNMP
#ifndef DLEXPORT
#define DLEXPORT
diff --git a/ext/swf/php_swf.h b/ext/swf/php_swf.h
index 3cb06178d5..d6db4154db 100644
--- a/ext/swf/php_swf.h
+++ b/ext/swf/php_swf.h
@@ -21,11 +21,6 @@
#ifndef _PHP_SWF_H
#define _PHP_SWF_H
-#ifdef COMPILE_DL_SWF
-#undef HAVE_SWF
-#define HAVE_SWF 1
-#endif
-
#if HAVE_SWF
extern zend_module_entry swf_module_entry;
diff --git a/ext/sybase/php_sybase.h b/ext/sybase/php_sybase.h
index 3ebb10bdc8..d506348994 100644
--- a/ext/sybase/php_sybase.h
+++ b/ext/sybase/php_sybase.h
@@ -33,11 +33,6 @@
#ifndef _PHP_SYBASE_H
#define _PHP_SYBASE_H
-#if COMPILE_DL
-#undef HAVE_SYBASE
-#define HAVE_SYBASE 1
-#endif
-
#if HAVE_SYBASE
extern zend_module_entry sybase_module_entry;
diff --git a/ext/sybase_ct/php_sybase_ct.h b/ext/sybase_ct/php_sybase_ct.h
index 466ed536f5..3cb6fc8db1 100644
--- a/ext/sybase_ct/php_sybase_ct.h
+++ b/ext/sybase_ct/php_sybase_ct.h
@@ -33,11 +33,6 @@
#ifndef _PHP_SYBASE_CT_H
#define _PHP_SYBASE_CT_H
-#if COMPILE_DL
-#undef HAVE_SYBASE_CT
-#define HAVE_SYBASE_CT 1
-#endif
-
#if HAVE_SYBASE_CT
#define CTLIB_VERSION CS_VERSION_100
diff --git a/ext/sysvsem/php_sysvsem.h b/ext/sysvsem/php_sysvsem.h
index 4ae3411d6b..d26195fb10 100644
--- a/ext/sysvsem/php_sysvsem.h
+++ b/ext/sysvsem/php_sysvsem.h
@@ -33,11 +33,6 @@
#ifndef _PHP_SYSVSEM_H
#define _PHP_SYSVSEM_H
-#if COMPILE_DL
-#undef HAVE_SYSVSEM
-#define HAVE_SYSVSEM 1
-#endif
-
#if HAVE_SYSVSEM
extern zend_module_entry sysvsem_module_entry;
diff --git a/ext/sysvshm/php_sysvshm.h b/ext/sysvshm/php_sysvshm.h
index 645f45968e..27c8ef6be3 100644
--- a/ext/sysvshm/php_sysvshm.h
+++ b/ext/sysvshm/php_sysvshm.h
@@ -33,12 +33,6 @@
#ifndef _PHP_SYSVSHM_H
#define _PHP_SYSVSHM_H
-#if COMPILE_DL
-#undef HAVE_SYSVSHM
-#define HAVE_SYSVSHM 1
-#endif
-
-
#if HAVE_SYSVSHM
extern zend_module_entry sysvshm_module_entry;
diff --git a/ext/yp/php_yp.h b/ext/yp/php_yp.h
index c391325109..bd9a88beee 100644
--- a/ext/yp/php_yp.h
+++ b/ext/yp/php_yp.h
@@ -31,11 +31,6 @@
#ifndef _PHP_YP_H
#define _PHP_YP_H
-#if COMPILE_DL
-#undef HAVE_YP
-#define HAVE_YP 1
-#endif
-
#if HAVE_YP
extern zend_module_entry yp_module_entry;
diff --git a/ext/zlib/php_zlib.h b/ext/zlib/php_zlib.h
index ea60033067..9c7b322c62 100644
--- a/ext/zlib/php_zlib.h
+++ b/ext/zlib/php_zlib.h
@@ -28,11 +28,6 @@
#ifndef _PHP_ZLIB_H
#define _PHP_ZLIB_H
-#if COMPILE_DL_ZLIB
-#undef HAVE_ZLIB
-#define HAVE_ZLIB 1
-#endif
-
#if HAVE_ZLIB
typedef struct {