aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tag.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tag.h b/src/tag.h
index 1a6dd5894..0f5252108 100644
--- a/src/tag.h
+++ b/src/tag.h
@@ -75,8 +75,11 @@ void tag_free(struct tag *tag);
void tag_add_item_n(struct tag *tag, enum tag_type itemType,
const char *value, size_t len);
-#define tag_add_item(tag, itemType, value) \
- tag_add_item_n(tag, itemType, value, strlen(value))
+static inline void tag_add_item(struct tag *tag, enum tag_type itemType,
+ const char *value)
+{
+ tag_add_item_n(tag, itemType, value, strlen(value));
+}
void tag_print_types(int fd);