Skip to content

Commit 61eb7ae

Browse files
committed
remove unused PHP_EXTNAME_API macros.
#in preparation for the gcc 4 visibility patch
1 parent 32dfad7 commit 61eb7ae

File tree

27 files changed

+0
-162
lines changed

27 files changed

+0
-162
lines changed

ext/com_dotnet/php_com_dotnet.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@
2424
extern zend_module_entry com_dotnet_module_entry;
2525
#define phpext_com_dotnet_ptr &com_dotnet_module_entry
2626

27-
#ifdef PHP_WIN32
28-
# define PHP_COM_DOTNET_API __declspec(dllexport)
29-
#else
30-
# define PHP_COM_DOTNET_API
31-
#endif
32-
3327
#ifdef ZTS
3428
#include "TSRM.h"
3529
#endif

ext/ctype/php_ctype.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@
2424
extern zend_module_entry ctype_module_entry;
2525
#define phpext_ctype_ptr &ctype_module_entry
2626

27-
#ifdef PHP_WIN32
28-
#define PHP_CTYPE_API __declspec(dllexport)
29-
#else
30-
#define PHP_CTYPE_API
31-
#endif
32-
3327
#else
3428

3529
#define phpext_ctype_ptr NULL

ext/filter/php_filter.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@
3333
extern zend_module_entry filter_module_entry;
3434
#define phpext_filter_ptr &filter_module_entry
3535

36-
#ifdef PHP_WIN32
37-
#define PHP_FILTER_API __declspec(dllexport)
38-
#else
39-
#define PHP_FILTER_API
40-
#endif
41-
4236
#ifdef ZTS
4337
#include "TSRM.h"
4438
#endif

ext/gmp/php_gmp.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@
2626
extern zend_module_entry gmp_module_entry;
2727
#define phpext_gmp_ptr &gmp_module_entry
2828

29-
#ifdef ZEND_WIN32
30-
#define GMP_API __declspec(dllexport)
31-
#else
32-
#define GMP_API
33-
#endif
34-
3529
ZEND_MODULE_STARTUP_D(gmp);
3630
ZEND_MODULE_DEACTIVATE_D(gmp);
3731
ZEND_MODULE_INFO_D(gmp);

ext/json/php_json.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@
2626
extern zend_module_entry json_module_entry;
2727
#define phpext_json_ptr &json_module_entry
2828

29-
#ifdef PHP_WIN32
30-
#define PHP_JSON_API __declspec(dllexport)
31-
#else
32-
#define PHP_JSON_API
33-
#endif
34-
3529
#ifdef ZTS
3630
#include "TSRM.h"
3731
#endif

ext/mime_magic/php_mime_magic.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@
2424
extern zend_module_entry mime_magic_module_entry;
2525
#define phpext_mime_magic_ptr &mime_magic_module_entry
2626

27-
#ifdef PHP_WIN32
28-
#define PHP_MIME_MAGIC_API __declspec(dllexport)
29-
#else
30-
#define PHP_MIME_MAGIC_API
31-
#endif
32-
3327
PHP_MINIT_FUNCTION(mime_magic);
3428
PHP_MSHUTDOWN_FUNCTION(mime_magic);
3529
PHP_RINIT_FUNCTION(mime_magic);

ext/mssql/php_mssql.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@
2525

2626
#if HAVE_MSSQL
2727
#define MSDBLIB
28-
#ifdef PHP_WIN32
29-
#define PHP_MSSQL_API __declspec(dllexport)
30-
#else
31-
#define PHP_MSSQL_API
32-
#endif
3328

3429
#include <sqlfront.h>
3530
#include <sqldb.h>

ext/ncurses/php_ncurses.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ extern zend_module_entry ncurses_module_entry;
3939
extern const zend_function_entry ncurses_functions[];
4040
#include "php_ncurses_fe.h"
4141

42-
#ifdef PHP_WIN32
43-
#define PHP_NCURSES_API __declspec(dllexport)
44-
#else
45-
#define PHP_NCURSES_API
46-
#endif
47-
4842
PHP_MINIT_FUNCTION(ncurses);
4943
PHP_MSHUTDOWN_FUNCTION(ncurses);
5044
PHP_MINFO_FUNCTION(ncurses);

ext/oci8/php_oci8.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@
3131
# ifndef PHP_OCI8_H
3232
# define PHP_OCI8_H
3333

34-
#ifdef PHP_WIN32
35-
#define PHP_OCI_API __declspec(dllexport)
36-
#else
37-
#define PHP_OCI_API
38-
#endif
39-
4034
#ifdef ZTS
4135
# include "TSRM.h"
4236
#endif

ext/pcntl/php_pcntl.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@
2727
extern zend_module_entry pcntl_module_entry;
2828
#define phpext_pcntl_ptr &pcntl_module_entry
2929

30-
#ifdef PHP_WIN32
31-
#define PHP_PCNTL_API __declspec(dllexport)
32-
#else
33-
#define PHP_PCNTL_API
34-
#endif
35-
3630
PHP_MINIT_FUNCTION(pcntl);
3731
PHP_MSHUTDOWN_FUNCTION(pcntl);
3832
PHP_RINIT_FUNCTION(pcntl);

0 commit comments

Comments
 (0)