also provide LTC_NORETURN for msvc

This commit is contained in:
Steffen Jaeckel 2019-04-10 09:17:50 +02:00
parent a9ff2d0dac
commit 27d09b6104

View File

@ -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