diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index bd15c9f9f..f125707d8 100644 --- a/wolfssl/wolfcrypt/types.h +++ b/wolfssl/wolfcrypt/types.h @@ -293,7 +293,6 @@ decouple library dependencies with standard string, memory and so on. /* GCC 7 has new switch() fall-through detection */ #if defined(__GNUC__) #if ((__GNUC__ > 7) || ((__GNUC__ == 7) && (__GNUC_MINOR__ >= 1))) - #undef FALL_THROUGH #if defined(WOLFSSL_LINUXKM) && defined(fallthrough) #define FALL_THROUGH fallthrough #else @@ -304,6 +303,7 @@ decouple library dependencies with standard string, memory and so on. #endif /* FALL_THROUGH */ #if !defined(FALL_THROUGH) || defined(__XC32) /* use stub for fall through by default or for Microchip compiler */ + #undef FALL_THROUGH #define FALL_THROUGH #endif