From daa2dec6fcf0fca3a91d42917cc1240391187fc0 Mon Sep 17 00:00:00 2001 From: David Gräff Date: Tue, 10 Jul 2018 18:31:01 +0200 Subject: [PATCH] Update hantekdsocontrol.cpp --- openhantek/src/hantekdso/hantekdsocontrol.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/openhantek/src/hantekdso/hantekdsocontrol.cpp b/openhantek/src/hantekdso/hantekdsocontrol.cpp index 83a4d0c..70a560b 100644 --- a/openhantek/src/hantekdso/hantekdsocontrol.cpp +++ b/openhantek/src/hantekdso/hantekdsocontrol.cpp @@ -1223,12 +1223,14 @@ void HantekDsoControl::run() { // Start next capture if necessary by leaving out the break statement if (!this->sampling) break; -#if __has_cpp_attribute(clang::fallthrough) -#define FALLTHROUGH [[clang::fallthrough]]; -#elif __has_cpp_attribute(fallthrough) -#define FALLTHROUGH [[fallthrough]]; -#else -#define FALLTHROUGH +#ifdef __has_cpp_attribute + #if __has_cpp_attribute(clang::fallthrough) + #define FALLTHROUGH [[clang::fallthrough]]; + #elif __has_cpp_attribute(fallthrough) + #define FALLTHROUGH [[fallthrough]]; + #else + #define FALLTHROUGH + #endif #endif else { FALLTHROUGH -- libgit2 0.21.4