Skip to content

Commit 42d2749

Browse files
committed
Sync ext/fileinfo
1 parent 9be4957 commit 42d2749

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/ext/fileinfo/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ endif()
101101
check_symbol_exists(strndup string.h HAVE_STRNDUP)
102102
check_symbol_exists(utimes sys/time.h HAVE_UTIMES)
103103

104-
php_check_function_attribute(visibility HAVE_VISIBILITY)
104+
php_check_function_attribute(visibility HAVE_FUNC_ATTRIBUTE_VISIBILITY)
105105

106106
target_compile_definitions(
107107
php_ext_fileinfo
@@ -110,7 +110,7 @@ target_compile_definitions(
110110
# The libmagic still includes them conditionally.
111111
HAVE_WCHAR_H=1
112112
HAVE_INTTYPES_H=1
113-
$<IF:$<BOOL:${HAVE_VISIBILITY}>,HAVE_VISIBILITY=1,HAVE_VISIBILITY=0>
113+
$<IF:$<BOOL:${HAVE_FUNC_ATTRIBUTE_VISIBILITY}>,HAVE_VISIBILITY=1,HAVE_VISIBILITY=0>
114114
)
115115

116116
target_include_directories(php_ext_fileinfo PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})

0 commit comments

Comments
 (0)