From a096d8d526be812f628183f3c181393b156c3651 Mon Sep 17 00:00:00 2001 From: Siddharth Chandrasekaran Date: Tue, 20 Feb 2024 23:22:00 +0100 Subject: [PATCH] utils: Fix warning about __weak redefined Signed-off-by: Siddharth Chandrasekaran --- include/utils/utils.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/utils/utils.h b/include/utils/utils.h index 5ea7baf..430b5c6 100644 --- a/include/utils/utils.h +++ b/include/utils/utils.h @@ -127,6 +127,10 @@ extern "C" { #define PACK( __Declaration__ ) __pragma( pack(push, 1) ) __Declaration__ __pragma( pack(pop)) #endif +#ifdef __weak +#undef __weak +#endif + #if (defined(_WIN32) || defined(_WIN64)) #define __format_printf(x, y) #define __noreturn