Skip to content

Commit b296712

Browse files
authored
zend: gcc 15 will support counted_by(x) instead. (php#17790)
gcc gave up on the initial patchset for `element_count` and went by `counted_by` since last october.
1 parent 1a468b6 commit b296712

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Zend/zend_portability.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,7 @@ char *alloca();
338338
# define HAVE_BUILTIN_CONSTANT_P
339339
#endif
340340

341-
#if __has_attribute(element_count)
342-
#define ZEND_ELEMENT_COUNT(m) __attribute__((element_count(m)))
343-
#elif __has_attribute(counted_by)
341+
#if __has_attribute(counted_by)
344342
#define ZEND_ELEMENT_COUNT(m) __attribute__((counted_by(m)))
345343
#else
346344
#define ZEND_ELEMENT_COUNT(m)

0 commit comments

Comments
 (0)