Skip to content

Commit 4eae5ac

Browse files
committed
Simplify version check
1 parent c91544d commit 4eae5ac

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cmake/ext/bz2/CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,11 @@ if(TARGET BZip2::BZip2)
8686
cmake_push_check_state(RESET)
8787
set(CMAKE_REQUIRED_LIBRARIES BZip2::BZip2)
8888

89-
# bzip versions 1.0.1 and earlier required <stdio.h> to be included before
90-
# bzlib.h, to have FILE definition. In 1.0.4, minor version (4) has been
91-
# updated in the bzlib.h header. BZ2_bzerror() is available as of 1.0.0.
89+
# Versions before 1.0.2 required <stdio.h> to be included before bzlib.h for
90+
# the FILE definition. BZ2_bzerror() is available as of 1.0.0.
9291
block()
9392
set(headers "bzlib.h")
94-
if(BZIP2_VERSION VERSION_LESS 1.0.4)
93+
if(BZIP2_VERSION VERSION_LESS 1.0.2)
9594
list(PREPEND headers "stdio.h")
9695
endif()
9796
check_symbol_exists(BZ2_bzerror "${headers}" PHP_EXT_BZ2_SANITY_CHECK)

0 commit comments

Comments
 (0)