Skip to content

Commit a9d4cf9

Browse files
author
Andi Gutmans
committed
- Nuke COMPILE_DL. Modules that need to be compiled as dll's in Windows
- need to define both COMPILE_DL_MODULE and HAVE_MODULE=1
1 parent 0eeee6b commit a9d4cf9

File tree

26 files changed

+7
-135
lines changed

26 files changed

+7
-135
lines changed

ext/bcmath/php_bcmath.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@
3333
#ifndef _PHP_BCMATH_H
3434
#define _PHP_BCMATH_H
3535

36-
#if COMPILE_DL
37-
#undef WITH_BCMATH
38-
#define WITH_BCMATH 1
39-
#endif
40-
4136
#if WITH_BCMATH
4237

4338
extern zend_module_entry bcmath_module_entry;

ext/db/php_db.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ typedef struct dbm_info {
5757
because the dbm module will be external, and we
5858
do not want flatfile compiled staticly
5959
*/
60-
#if defined(MSVC5) && !defined(COMPILE_DL)
60+
#if defined(PHP_WIN32) && !defined(COMPILE_DL_DB)
6161
#undef phpext_db_ptr
6262
#define phpext_db_ptr NULL
6363
#endif

ext/exif/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ dnl Make sure that the comment is aligned:
66
[ --enable-exif Enable exif support])
77

88
if test "$PHP_EXIF" != "no"; then
9-
AC_DEFINE(PHP_EXIF, 1, [Whether you want exif support])
9+
AC_DEFINE(HAVE_EXIF, 1, [Whether you want exif support])
1010
PHP_EXTENSION(exif, $ext_shared)
1111
fi

ext/exif/exif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*/
3939
#include "php.h"
4040

41-
#if PHP_EXIF
41+
#if HAVE_EXIF
4242

4343
#include "php_exif.h"
4444
#include <math.h>

ext/exif/php_exif.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@
1515
| Authors: Rasmus Lerdorf <[email protected]> |
1616
+----------------------------------------------------------------------+
1717
*/
18-
#ifdef COMPILE_DL || COMPILE_DL_EXIF
19-
# undef PHP_EXIF
20-
# define PHP_EXIF 1
21-
#endif
2218

23-
#if PHP_EXIF
19+
#if HAVE_EXIF
2420
extern zend_module_entry exif_module_entry;
2521
#define phpext_exif_ptr &exif_module_entry
2622

ext/ftp/php_ftp.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@
3333
#ifndef _INCLUDED_FTP_H
3434
#define _INCLUDED_FTP_H
3535

36-
#if COMPILE_DL
37-
#undef HAVE_FTP
38-
#define HAVE_FTP 1
39-
#endif
40-
4136
#if HAVE_FTP
4237

4338
extern zend_module_entry php_ftp_module_entry;

ext/gd/php_gd.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@
4040
#define ENABLE_GD_TTF
4141
#endif
4242

43-
#if COMPILE_DL
44-
#undef HAVE_LIBGD
45-
#define HAVE_LIBGD 1
46-
#endif
47-
4843
#if HAVE_LIBGD
4944

5045
#include <gd.h>

ext/hyperwave/php_hyperwave.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@
2828
#ifndef _HW_H
2929
#define _HW_H
3030

31-
#if COMPILE_DL
32-
#undef HYPERWAVE
33-
#define HYPERWAVE 1
34-
#endif
35-
3631
#ifdef PHP_WIN32
3732
#define PHP_HW_API __declspec(dllexport)
3833
#else

ext/icap/php_icap.h

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,9 @@
33
#ifndef _INCLUDED_ICAP_H
44
#define _INCLUDED_ICAP_H
55

6-
#if COMPILE_DL
7-
#undef HAVE_ICAP
8-
#define HAVE_ICAP 1
9-
#endif
10-
116
#if HAVE_ICAP
127

13-
#ifdef THREAD_SAFE
14-
#include "tls.h"
15-
#endif
16-
#ifndef MSVC5
8+
#ifndef PHP_WIN32
179
#include "build-defs.h"
1810
#endif
1911

@@ -48,7 +40,3 @@ PHP_FUNCTION(icap_list_alarms);
4840

4941

5042
#endif
51-
52-
53-
54-

ext/informix/php_informix.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@
3434
#ifndef _PHP_IFX_H
3535
#define _PHP_IFX_H
3636

37-
38-
#if COMPILE_DL
39-
#undef HAVE_IFX
40-
#define HAVE_IFX 1
41-
#endif
42-
4337
#ifdef PHP_WIN32
4438
#define PHP_IFX_API __declspec(dllexport)
4539
#else

0 commit comments

Comments
 (0)