summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwosee <twose@qq.com>2020-12-10 14:40:41 +0800
committertwosee <twose@qq.com>2020-12-10 17:15:19 +0800
commit26c7b9402da7308e92d7cecd3bebd465341467c5 (patch)
tree3f7ac1beebafec52a02146218c97a3ee93007257
parentc95680d4b7b8a7819459486ad0a3c5413b076604 (diff)
downloadphp-git-26c7b9402da7308e92d7cecd3bebd465341467c5.tar.gz
EXTERN_C wrapping for GC buffer APIs
Closes GH-6502.
-rw-r--r--Zend/zend_gc.h4
1 files changed, 2 insertions, 2 deletions
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 */