Skip to content

Commit 28ec1db

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

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
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/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)