Skip to content

Commit a062470

Browse files
author
Greg Beaver
committed
MFH: fix windows build for all cases, and always export symbols (Steph Fox)
1 parent 42ef796 commit a062470

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

ext/zip/config.w32

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ if (PHP_ZIP != "no") {
3131

3232
AC_DEFINE('HAVE_ZLIB', 1);
3333
AC_DEFINE('HAVE_ZIP', 1);
34-
if (PHP_ZIP_SHARED) {
35-
ADD_FLAG("CFLAGS_ZIP", "/D PHP_ZIP_EXPORTS ");
36-
}
34+
ADD_FLAG("CFLAGS_ZIP", "/D PHP_ZIP_EXPORTS ");
3735
} else {
3836
WARNING("zip not enabled; libraries and headers not found");
3937
}

ext/zip/lib/zip.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@
4444
#include "zip_win32.h"
4545
# ifdef PHP_ZIP_EXPORTS
4646
# define PHPZIPAPI __declspec(dllexport)
47-
# elif defined(COMPILE_DL_ZIP)
48-
# define PHPZIPAPI __declspec(dllimport)
4947
# else
5048
# define PHPZIPAPI
5149
# endif

0 commit comments

Comments
 (0)