From f47e37db8824a1d74de5660141665c879450a559 Mon Sep 17 00:00:00 2001 From: oberrich Date: Fri, 7 Jun 2024 10:24:06 +0200 Subject: [PATCH] fix: broken compiler guard instead use the more portable `gnu::retain` c++ attribute --- include/inline_syscall.inl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/inline_syscall.inl b/include/inline_syscall.inl index f787b55..c0a4d17 100644 --- a/include/inline_syscall.inl +++ b/include/inline_syscall.inl @@ -21,10 +21,8 @@ #if defined(_MSC_VER) #define JM_INLINE_SYSCALL_FORCEINLINE __forceinline -#define JM_INLINE_SYSCALL_RETAIN #else #define JM_INLINE_SYSCALL_FORCEINLINE __attribute__((always_inline)) -#define JM_INLINE_SYSCALL_RETAIN __attribute__((retain)) #endif // helper macro to reduce the typing a bit @@ -60,7 +58,7 @@ namespace jm { template struct syscall_holder { [[gnu::section( - "_sysc")]] JM_INLINE_SYSCALL_RETAIN inline static JM_INLINE_SYSCALL_ENTRY_TYPE entry{ Hash }; + "_sysc"), gnu::retain]] inline static JM_INLINE_SYSCALL_ENTRY_TYPE entry{ Hash }; }; // we instantiate the first entry with 0 hash to be able to get a pointer