Skip to content

Commit

Permalink
update arm_2d_user_arch_port.h
Browse files Browse the repository at this point in the history
  • Loading branch information
GorgonMeducer committed Nov 6, 2023
1 parent f61f107 commit 851e2e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Library/Include/template/arm_2d_user_arch_port.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <stdint.h>
# 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 <stdint.h>
# 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,24 @@

/*============================ MACROS ========================================*/



#if defined (_MSC_VER)
# include <stdint.h>
# 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 <stdint.h>
# 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 <stdint.h>
# 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
Expand Down

0 comments on commit 851e2e4

Please sign in to comment.