From: twosee Date: Thu, 10 Dec 2020 06:40:41 +0000 (+0800) Subject: EXTERN_C wrapping for GC buffer APIs X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26c7b9402da7308e92d7cecd3bebd465341467c5;p=php EXTERN_C wrapping for GC buffer APIs Closes GH-6502. --- diff --git a/Zend/zend_gc.h b/Zend/zend_gc.h index b334173763..f44786425f 100644 --- a/Zend/zend_gc.h +++ b/Zend/zend_gc.h @@ -55,8 +55,6 @@ void gc_reset(void); size_t zend_gc_globals_size(void); #endif -END_EXTERN_C() - #define GC_REMOVE_FROM_BUFFER(p) do { \ zend_refcounted *_p = (zend_refcounted*)(p); \ if (GC_TYPE_INFO(_p) & GC_INFO_MASK) { \ @@ -122,4 +120,6 @@ static zend_always_inline void zend_get_gc_buffer_use( *n = gc_buffer->cur - gc_buffer->start; } +END_EXTERN_C() + #endif /* ZEND_GC_H */