summaryrefslogtreecommitdiff
path: root/xcache
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2014-11-12 07:03:46 +0000
committerXuefer <xuefer@gmail.com>2014-11-12 07:03:46 +0000
commit15ad8700a85f66cd53cb24d6f1f0aaf8cb9c1c79 (patch)
treeaba45e9c2ac2d491b6e1f7a2b1e5c6809ec03e41 /xcache
parentef3a8f0221f51896ad8faf9000888d9e56cfe1b4 (diff)
downloadxcache-15ad8700a85f66cd53cb24d6f1f0aaf8cb9c1c79.tar.gz
xcache-15ad8700a85f66cd53cb24d6f1f0aaf8cb9c1c79.zip
support for reference value
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1572 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'xcache')
-rw-r--r--xcache/xc_compatibility.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xcache/xc_compatibility.h b/xcache/xc_compatibility.h
index b2be78c..2168b54 100644
--- a/xcache/xc_compatibility.h
+++ b/xcache/xc_compatibility.h
@@ -68,6 +68,9 @@
#ifndef Z_SET_REFCOUNT
# define Z_SET_REFCOUNT(z, rc) (z).refcount = rc
#endif
+#ifndef Z_ADDREF
+# define Z_ADDREF(z) (z).refcount++
+#endif
#ifndef IS_CONSTANT_TYPE_MASK
# define IS_CONSTANT_TYPE_MASK (~IS_CONSTANT_INDEX)
#endif