From 8aeb793a41a3a5c9bbe7d56a032390acfcf32109 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Wed, 3 Jul 2024 15:24:44 +0100 Subject: [PATCH] fixes compiler error 'Forward declaration of enums' --- include/util.h | 2 +- src/util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/util.h b/include/util.h index 870cb46..5b305eb 100644 --- a/include/util.h +++ b/include/util.h @@ -3,7 +3,7 @@ void remove_name_in_path(char *szPath); int replace_multiple_space_with_one(char *s, size_t len); -char *kind_as_string(char *s, enum kind kind, int n); +char *kind_as_string(char *s, int kind, int n); char *version_as_string(char *, long v, int n); #endif /* __UTIL_H__ */ \ No newline at end of file diff --git a/src/util.c b/src/util.c index 7c46a16..4924672 100644 --- a/src/util.c +++ b/src/util.c @@ -70,7 +70,7 @@ int replace_multiple_space_with_one(char *s, size_t len) * @param n maximum number of characters to be written to the buffer * @return char* The kind of Voicemeeter as a string */ -char *kind_as_string(char *s, enum kind kind, int n) +char *kind_as_string(char *s, int kind, int n) { char *kinds[] = { "Basic",