From 23fca6ed396b1a1c11271651a40105cb3d2af297 Mon Sep 17 00:00:00 2001 From: Karel Miko Date: Thu, 30 Jul 2026 16:01:06 +0200 Subject: [PATCH] Fix LTC_FALLTHROUGH related error reported by MSVC compiler --- src/headers/tomcrypt_cfg.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/headers/tomcrypt_cfg.h b/src/headers/tomcrypt_cfg.h index 13187813..c1c4e55c 100644 --- a/src/headers/tomcrypt_cfg.h +++ b/src/headers/tomcrypt_cfg.h @@ -415,6 +415,9 @@ typedef unsigned long ltc_mp_digit; #if __has_attribute(fallthrough) # define LTC_FALLTHROUGH LTC_ATTRIBUTE((fallthrough)) #endif +#ifndef LTC_FALLTHROUGH +# define LTC_FALLTHROUGH +#endif #if __has_attribute(target) # define LTC_TARGET(x) LTC_ATTRIBUTE((target(x))) #endif