]> granicus.if.org Git - php/commitdiff
MFPECL: fix windows build for all cases, and always export symbols (Steph Fox)
authorGreg Beaver <cellog@php.net>
Mon, 14 Jan 2008 03:15:50 +0000 (03:15 +0000)
committerGreg Beaver <cellog@php.net>
Mon, 14 Jan 2008 03:15:50 +0000 (03:15 +0000)
ext/zip/config.w32
ext/zip/lib/zip.h

index e698f94f3a4117761da6b5f5ff51b35f590a778c..a8ae4f1223e1fffa71daccbd1ea12b916cce5b04 100644 (file)
@@ -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");
        }
index 468155569f455c5bfdb83103b5c457fb026eba32..6af8451b56eba9ec6bc0552f05871e81337b1d18 100644 (file)
@@ -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