From 0c886b45815359d876d883bc8041205803920f8d Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Wed, 7 Feb 2024 13:22:24 +0100 Subject: [PATCH] Fix typedef redefinition warnings PHP at this point still requires only C99, so this fixes warnings "redefinition of typedef '...' is a C11 feature [-Wtypedef-redefinition]" when building with Clang and -Wtypedef-redefinition. --- Zend/zend_frameless_function.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Zend/zend_frameless_function.h b/Zend/zend_frameless_function.h index 6821654bc424b..94e9812ed9150 100644 --- a/Zend/zend_frameless_function.h +++ b/Zend/zend_frameless_function.h @@ -26,7 +26,7 @@ # include #endif -#include "zend_portability.h" +#include "zend_types.h" #define ZEND_FRAMELESS_FUNCTION_PARAMETERS_0 zval *return_value #define ZEND_FRAMELESS_FUNCTION_PARAMETERS_1 zval *return_value, zval *arg1 @@ -103,10 +103,6 @@ BEGIN_EXTERN_C() -typedef struct _zval_struct zval; -typedef struct _zend_op zend_op; -typedef union _zend_function zend_function; - typedef void (*zend_frameless_function_0)(zval *return_value); typedef void (*zend_frameless_function_1)(zval *return_value, zval *op1); typedef void (*zend_frameless_function_2)(zval *return_value, zval *op1, zval *op2);