File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2056,7 +2056,8 @@ WOLFSSL_API word32 CheckRunTimeSettings(void);
20562056 #define WC_NORETURN
20572057#endif
20582058
2059- #if defined(__has_attribute) && __has_attribute(nonnull)
2059+ #ifdef __has_attribute
2060+ #if __has_attribute(nonnull)
20602061 #ifndef WC_ARG_NOT_NULL
20612062 #define WC_ARG_NOT_NULL (a ) __attribute__((nonnull(a)))
20622063 #endif
@@ -2069,16 +2070,17 @@ WOLFSSL_API word32 CheckRunTimeSettings(void);
20692070 #ifndef WC_ALL_ARGS_NOT_NULL
20702071 #define WC_ALL_ARGS_NOT_NULL __attribute__ ((nonnull))
20712072 #endif
2072- #else
2073- #ifndef WC_ARG_NOT_NULL
2074- #define WC_ARG_NOT_NULL (a ) /* null expansion */
2075- #endif
2076- #ifndef WC_ARGS_NOT_NULL
2077- #define WC_ARGS_NOT_NULL (p_a ) /* null expansion */
2078- #endif
2079- #ifndef WC_ALL_ARGS_NOT_NULL
2080- #define WC_ALL_ARGS_NOT_NULL
2081- #endif
2073+ #endif /* __has_attribute(nonnull) */
2074+ #endif /* defined(__has_attribute) */
2075+
2076+ #ifndef WC_ARG_NOT_NULL
2077+ #define WC_ARG_NOT_NULL (a ) /* null expansion */
2078+ #endif
2079+ #ifndef WC_ARGS_NOT_NULL
2080+ #define WC_ARGS_NOT_NULL (p_a ) /* null expansion */
2081+ #endif
2082+ #ifndef WC_ALL_ARGS_NOT_NULL
2083+ #define WC_ALL_ARGS_NOT_NULL
20822084#endif
20832085
20842086#if defined(WOLFSSL_KEY_GEN) || defined(HAVE_COMP_KEY) || \
You can’t perform that action at this time.
0 commit comments