Skip to content

Commit 36bbca0

Browse files
committed
ext/zip: Do not conditionally include zip.h
Trust pkg-config to give us the correct include path.
1 parent a10eb4a commit 36bbca0

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

ext/zip/config.m4

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ if test "$PHP_ZIP" != "no"; then
88

99
PHP_EVAL_LIBLINE($LIBZIP_LIBS, ZIP_SHARED_LIBADD)
1010

11-
AC_DEFINE(HAVE_LIBZIP, 1, [ ])
12-
1311
PHP_CHECK_LIBRARY(zip, zip_file_set_encryption,
1412
[
1513
AC_DEFINE(HAVE_ENCRYPTION, 1, [Libzip >= 1.2.0 with encryption support])

ext/zip/config.w32

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ if (PHP_ZIP != "no") {
1515
}
1616

1717
AC_DEFINE('HAVE_ZIP', 1);
18-
AC_DEFINE('HAVE_LIBZIP', 1);
1918
ADD_FLAG("CFLAGS_ZIP", "/D _WIN32 /D HAVE_ENCRYPTION");
2019
} else {
2120
WARNING("zip not enabled; libraries and headers not found");

ext/zip/php_zip.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ extern zend_module_entry zip_module_entry;
2727
#include "TSRM.h"
2828
#endif
2929

30-
#if defined(HAVE_LIBZIP)
3130
#include <zip.h>
32-
#else
33-
#include "lib/zip.h"
34-
#endif
3531

3632
#ifndef ZIP_OVERWRITE
3733
#define ZIP_OVERWRITE ZIP_TRUNCATE

0 commit comments

Comments
 (0)