]> granicus.if.org Git - php/commitdiff
EXTERN_C wrapping for GC buffer APIs
authortwosee <twose@qq.com>
Thu, 10 Dec 2020 06:40:41 +0000 (14:40 +0800)
committertwosee <twose@qq.com>
Thu, 10 Dec 2020 09:15:19 +0000 (17:15 +0800)
Closes GH-6502.

Zend/zend_gc.h

index b334173763f76a4d70edf0f97c8f28c6c8cf71c5..f44786425f6bfe1c3ac09a65576288bb4f56395f 100644 (file)
@@ -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 */