Commit daa2dec6fcf0fca3a91d42917cc1240391187fc0

Authored by David Gräff
Committed by GitHub
1 parent ea7b5cb4

Update hantekdsocontrol.cpp

Fixes #239
openhantek/src/hantekdso/hantekdsocontrol.cpp
@@ -1223,12 +1223,14 @@ void HantekDsoControl::run() { @@ -1223,12 +1223,14 @@ void HantekDsoControl::run() {
1223 // Start next capture if necessary by leaving out the break statement 1223 // Start next capture if necessary by leaving out the break statement
1224 1224
1225 if (!this->sampling) break; 1225 if (!this->sampling) break;
1226 -#if __has_cpp_attribute(clang::fallthrough)  
1227 -#define FALLTHROUGH [[clang::fallthrough]];  
1228 -#elif __has_cpp_attribute(fallthrough)  
1229 -#define FALLTHROUGH [[fallthrough]];  
1230 -#else  
1231 -#define FALLTHROUGH 1226 +#ifdef __has_cpp_attribute
  1227 + #if __has_cpp_attribute(clang::fallthrough)
  1228 + #define FALLTHROUGH [[clang::fallthrough]];
  1229 + #elif __has_cpp_attribute(fallthrough)
  1230 + #define FALLTHROUGH [[fallthrough]];
  1231 + #else
  1232 + #define FALLTHROUGH
  1233 + #endif
1232 #endif 1234 #endif
1233 else { 1235 else {
1234 FALLTHROUGH 1236 FALLTHROUGH