*made _ref_count_t customizable.

This commit is contained in:
Wang Renxin 2017-11-11 20:53:18 +08:00
parent 9a2d88d304
commit ba0c115baa
2 changed files with 3 additions and 1 deletions

View File

@ -404,7 +404,9 @@ typedef void (* _unref_func_t)(struct _ref_t*, void*);
#define _NONE_REF 1
#ifndef _ref_count_t
typedef unsigned _ref_count_t;
#endif /* _ref_count_t */
/* The reference structure should be always at the head of an object */
typedef struct _ref_t {