Browse Source

MFH: fix windows build for all cases, and always export symbols (Steph Fox)

PECL
Greg Beaver 19 years ago
parent
commit
a0624708c7
  1. 4
      ext/zip/config.w32
  2. 2
      ext/zip/lib/zip.h

4
ext/zip/config.w32

@ -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");
}

2
ext/zip/lib/zip.h

@ -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…
Cancel
Save