Skip to content

Commit f11d115

Browse files
committed
Prevent duplicate pragma defines in clang
1 parent b96a836 commit f11d115

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfssl/wolfcrypt/types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2082,7 +2082,7 @@ WOLFSSL_API word32 CheckRunTimeSettings(void);
20822082
#define WC_MP_TO_RADIX
20832083
#endif
20842084

2085-
#if defined(__GNUC__) && __GNUC__ > 5
2085+
#if defined(__GNUC__) && (__GNUC__ > 5) && !defined(__clang__)
20862086
#define PRAGMA_GCC_DIAG_PUSH _Pragma("GCC diagnostic push")
20872087
#define PRAGMA_GCC(str) _Pragma(str)
20882088
#define PRAGMA_GCC_DIAG_POP _Pragma("GCC diagnostic pop")

0 commit comments

Comments
 (0)