From faa2e78d4f39359a666d99192b01aa461e78cd0d Mon Sep 17 00:00:00 2001 From: David Carlier Date: Thu, 13 Feb 2025 23:00:06 +0000 Subject: [PATCH] zend: gcc 15 will support counted_by(x) instead. gcc gave up on the initial patchset for `element_count` and went by `counted_by` since last october. --- Zend/zend_portability.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h index 0acec2bf3baf7..f5e0b15788ecc 100644 --- a/Zend/zend_portability.h +++ b/Zend/zend_portability.h @@ -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)