From 26b392d5237e58aea1d16b0e6cdd6bc2fa4532bc Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 5 Jun 2024 03:17:10 -0500 Subject: [PATCH] Momo: disable formatarg on MSVC --- src/gui/about.cpp | 2 +- src/momo/momo.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/about.cpp b/src/gui/about.cpp index 15fdcf64e..a5c26e458 100644 --- a/src/gui/about.cpp +++ b/src/gui/about.cpp @@ -69,7 +69,7 @@ const char* aboutLine[]={ _N("-- localization/translation team --"), "Español: ThaCuber, tildearrow", "Հայերեն: Eknous", - "한국어: Heemin", + "한국어: Heemin, leejh20", "Nederlands: Lunathir", "Polski: freq-mod, PoznańskiSzybkowiec", "Português (Brasil): Kagamiin~", diff --git a/src/momo/momo.h b/src/momo/momo.h index 1f72ad638..57cd17037 100644 --- a/src/momo/momo.h +++ b/src/momo/momo.h @@ -24,7 +24,11 @@ extern "C" { #endif +#ifdef _MSC_VER +#define MOMO_FORMATARG +#else #define MOMO_FORMATARG __attribute__((format_arg(1))) +#endif const char* momo_setlocale(int type, const char* locale); const char* momo_bindtextdomain(const char* domainName, const char* dirName);