Skip to content

Commit 1a89296

Browse files
committed
don't be that strict
1 parent bfef635 commit 1a89296

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/headers/tomcrypt_cfg.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -277,14 +277,12 @@ typedef unsigned long ltc_mp_digit;
277277
#define LTC_HAVE_BSWAP_BUILTIN
278278
#endif
279279

280-
#ifdef __GNUC__
280+
#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 301)
281281
#define LTC_DEPRECATED __attribute__((deprecated))
282282
#elif defined(_MSC_VER)
283283
#define LTC_DEPRECATED __declspec(deprecated)
284-
#endif
285-
286-
#ifndef LTC_DEPRECATED
287-
#error "You need to define LTC_DEPRECATED for this compiler"
284+
#else
285+
#define LTC_DEPRECATED
288286
#endif
289287

290288
/* ref: $Format:%D$ */

0 commit comments

Comments
 (0)