Skip to content

Commit

Permalink
__declspec(deprecated) is supported since Visual Studio 2008
Browse files Browse the repository at this point in the history
  • Loading branch information
karel-m committed Oct 23, 2017
1 parent 80665ac commit 6c5dea3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/headers/tomcrypt_cfg.h
Expand Up @@ -279,7 +279,8 @@ typedef unsigned long ltc_mp_digit;

#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 301)
#define LTC_DEPRECATED __attribute__((deprecated))
#elif defined(_MSC_VER)
#elif defined(_MSC_VER) && _MSC_VER >= 1500
/* supported since Visual Studio 2008 */
#define LTC_DEPRECATED __declspec(deprecated)
#else
#define LTC_DEPRECATED
Expand Down

0 comments on commit 6c5dea3

Please sign in to comment.