1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

zend: gcc 15 will support counted_by(x) instead. (#17790)

gcc gave up on the initial patchset for `element_count` and went
by `counted_by` since last october.
This commit is contained in:
David CARLIER
2025-02-14 12:22:10 +00:00
committed by GitHub
parent 1a468b6efc
commit b296712403

View File

@@ -338,9 +338,7 @@ char *alloca();
# define HAVE_BUILTIN_CONSTANT_P
#endif
#if __has_attribute(element_count)
#define ZEND_ELEMENT_COUNT(m) __attribute__((element_count(m)))
#elif __has_attribute(counted_by)
#if __has_attribute(counted_by)
#define ZEND_ELEMENT_COUNT(m) __attribute__((counted_by(m)))
#else
#define ZEND_ELEMENT_COUNT(m)