Skip to content

Commit a3cc3ad

Browse files
committed
add LTC_DEPRECATED
1 parent 229135c commit a3cc3ad

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/headers/tomcrypt_cfg.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,15 @@ typedef unsigned long ltc_mp_digit;
277277
#define LTC_HAVE_BSWAP_BUILTIN
278278
#endif
279279

280+
#ifdef __GNUC__
281+
#define LTC_DEPRECATED __attribute__((deprecated))
282+
#elif defined(_MSC_VER)
283+
#define LTC_DEPRECATED __declspec(deprecated)
284+
#endif
285+
286+
#ifndef LTC_DEPRECATED
287+
#error "You need to define LTC_DEPRECATED for this compiler"
288+
#endif
280289

281290
/* ref: $Format:%D$ */
282291
/* git commit: $Format:%H$ */

0 commit comments

Comments
 (0)