From 19944a1d7646eff2624891f2364cc93b624fb31d Mon Sep 17 00:00:00 2001 From: TheQwertiest Date: Wed, 22 Jul 2020 16:40:04 +0300 Subject: [PATCH] Disabled __attribute__((deprecated)) usage for LCC --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 32923ee4b462..7c1c5f55939e 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -152,7 +152,7 @@ # if FMT_HAS_CPP14_ATTRIBUTE(deprecated) || FMT_MSC_VER >= 1900 # define FMT_DEPRECATED [[deprecated]] # else -# if defined(__GNUC__) || defined(__clang__) +# if (defined(__GNUC__) && !defined(__LCC__)) || defined(__clang__) # define FMT_DEPRECATED __attribute__((deprecated)) # elif FMT_MSC_VER # define FMT_DEPRECATED __declspec(deprecated)