From 851e2e480df6b955f72b2a90e39e44804109f9ff Mon Sep 17 00:00:00 2001 From: Gabriel Wang Date: Mon, 6 Nov 2023 17:28:45 +0900 Subject: [PATCH] update arm_2d_user_arch_port.h --- Library/Include/template/arm_2d_user_arch_port.h | 6 +++--- .../platform/arm_2d_user_arch_port.h | 8 +++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Library/Include/template/arm_2d_user_arch_port.h b/Library/Include/template/arm_2d_user_arch_port.h index 42d793927..b97567252 100644 --- a/Library/Include/template/arm_2d_user_arch_port.h +++ b/Library/Include/template/arm_2d_user_arch_port.h @@ -44,19 +44,19 @@ # define __STATIC_FORCEINLINE static __forceinline # define __STATIC_INLINE static __inline # define __ALIGNED(x) __declspec(align(x)) -# define __WEAK +# define __WEAK __attribute__((weak)) #elif defined ( __APPLE_CC__ ) # include # define __ALIGNED(x) __attribute__((aligned(x))) # define __STATIC_FORCEINLINE static inline __attribute__((always_inline)) # define __STATIC_INLINE static inline -# define __WEAK +# define __WEAK __attribute__((weak)) #else # include # define __ALIGNED(x) __attribute__((aligned(x))) # define __STATIC_FORCEINLINE static inline __attribute__((always_inline)) # define __STATIC_INLINE static inline -# define __WEAK +# define __WEAK __attribute__((weak)) #endif #undef arm_irq_safe diff --git a/examples/[template][pc][vscode]/platform/arm_2d_user_arch_port.h b/examples/[template][pc][vscode]/platform/arm_2d_user_arch_port.h index 42d793927..7684a68e4 100644 --- a/examples/[template][pc][vscode]/platform/arm_2d_user_arch_port.h +++ b/examples/[template][pc][vscode]/platform/arm_2d_user_arch_port.h @@ -37,26 +37,24 @@ /*============================ MACROS ========================================*/ - - #if defined (_MSC_VER) # include # define __STATIC_FORCEINLINE static __forceinline # define __STATIC_INLINE static __inline # define __ALIGNED(x) __declspec(align(x)) -# define __WEAK +# define __WEAK __attribute__((weak)) #elif defined ( __APPLE_CC__ ) # include # define __ALIGNED(x) __attribute__((aligned(x))) # define __STATIC_FORCEINLINE static inline __attribute__((always_inline)) # define __STATIC_INLINE static inline -# define __WEAK +# define __WEAK __attribute__((weak)) #else # include # define __ALIGNED(x) __attribute__((aligned(x))) # define __STATIC_FORCEINLINE static inline __attribute__((always_inline)) # define __STATIC_INLINE static inline -# define __WEAK +# define __WEAK __attribute__((weak)) #endif #undef arm_irq_safe