From 430f393d6f775530690e59c28d63e00d513b1131 Mon Sep 17 00:00:00 2001 From: TheQwertiest Date: Thu, 23 Jul 2020 16:34:03 +0300 Subject: [PATCH] Disabled __attribute__((deprecated)) usage for LCC (#1790) --- 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 32923ee4..7c1c5f55 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)