mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
MFPECL: fix windows build for all cases, and always export symbols (Steph Fox)
This commit is contained in:
parent
3fd137c88f
commit
5c8c279a55
@ -31,9 +31,7 @@ if (PHP_ZIP != "no") {
|
||||
|
||||
AC_DEFINE('HAVE_ZLIB', 1);
|
||||
AC_DEFINE('HAVE_ZIP', 1);
|
||||
if (PHP_ZIP_SHARED) {
|
||||
ADD_FLAG("CFLAGS_ZIP", "/D PHP_ZIP_EXPORTS ");
|
||||
}
|
||||
ADD_FLAG("CFLAGS_ZIP", "/D PHP_ZIP_EXPORTS ");
|
||||
} else {
|
||||
WARNING("zip not enabled; libraries and headers not found");
|
||||
}
|
||||
|
@ -44,8 +44,6 @@
|
||||
#include "zip_win32.h"
|
||||
# ifdef PHP_ZIP_EXPORTS
|
||||
# define PHPZIPAPI __declspec(dllexport)
|
||||
# elif defined(COMPILE_DL_ZIP)
|
||||
# define PHPZIPAPI __declspec(dllimport)
|
||||
# else
|
||||
# define PHPZIPAPI
|
||||
# endif
|
||||
|
Loading…
Reference in New Issue
Block a user