Browse Source

also provide LTC_NORETURN for msvc

Steffen Jaeckel 6 years ago
parent
commit
27d09b6104
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/headers/tomcrypt_cfg.h

+ 2 - 0
src/headers/tomcrypt_cfg.h

@@ -63,6 +63,8 @@ LTC_EXPORT int   LTC_CALL XSTRCMP(const char *s1, const char *s2);
 
 #if defined(__clang__) || defined(__GNUC_MINOR__)
 #define LTC_NORETURN __attribute__ ((noreturn))
+#elif defined(_MSC_VER)
+#define LTC_NORETURN __declspec(noreturn)
 #else
 #define LTC_NORETURN
 #endif