diff --git a/src/api/encoding.c b/src/api/encoding.c index cf21bf035..b5cb4dc54 100644 --- a/src/api/encoding.c +++ b/src/api/encoding.c @@ -29,7 +29,7 @@ .id = _id, \ .schema = {._slice = {.start = NULL, .len = 0, ._delete_context = {.deleter = NULL, .context = NULL}}}, \ }}; \ - const z_loaned_encoding_t *z_encoding_##_fname(void) { return &ZP_ENCODING_##_cname._val; } + inline const z_loaned_encoding_t *z_encoding_##_fname(void) { return &ZP_ENCODING_##_cname._val; } ENCODING_CONSTANT_MACRO(ZENOH_BYTES, zenoh_bytes, 0) ENCODING_CONSTANT_MACRO(ZENOH_INT8, zenoh_int8, 1)