Skip to content

Commit 0bf66f4

Browse files
committed
Use different name for shim implementation of rb_hash_new_capa
Fix: #383 This is a bit of a dirty workaround. Somehow on that user's machine `have_func` is failing and that results in conflicting functions. This change doesn't fix the root cause but allow the gem to work in a degraded mode.
1 parent f2ed467 commit 0bf66f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/msgpack/unpacker.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ static int16_t INITIAL_BUFFER_CAPACITY_MAX = SHRT_MAX;
6767
static msgpack_rmem_t s_stack_rmem;
6868

6969
#if !defined(HAVE_RB_HASH_NEW_CAPA)
70-
static inline VALUE rb_hash_new_capa(long capa)
70+
static inline VALUE rb_hash_new_capa_inline(long capa)
7171
{
7272
return rb_hash_new();
7373
}
74+
#define rb_hash_new_capa rb_hash_new_capa_inline
7475
#endif
7576

7677
static inline int16_t initial_buffer_size(long size)

0 commit comments

Comments
 (0)