Skip to content

Commit e91d2c7

Browse files
authored
zend: ZEND_NONSTRING for clang >= 20 support (#19193)
1 parent d7f9caf commit e91d2c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_portability.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ extern "C++" {
769769
# define ZEND_INDIRECT_RETURN
770770
#endif
771771

772-
#if __has_attribute(nonstring) && defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 15
772+
#if __has_attribute(nonstring) && defined(__GNUC__) && ((!defined(__clang__) && __GNUC__ >= 15) || (defined(__clang_major__) && __clang_major__ >= 20))
773773
# define ZEND_NONSTRING __attribute__((nonstring))
774774
#else
775775
# define ZEND_NONSTRING

0 commit comments

Comments
 (0)