diff --git a/src/Train/ElevationChartWindow.cpp b/src/Train/ElevationChartWindow.cpp index ab0c20ae5..7e3206822 100644 --- a/src/Train/ElevationChartWindow.cpp +++ b/src/Train/ElevationChartWindow.cpp @@ -18,7 +18,7 @@ namespace elevationChart { #if defined(CXX17) #define CONSTEXPR constexpr #define CONSTEXPR_FUNC constexpr -#else constexpr +#else #define CONSTEXPR static const #define CONSTEXPR_FUNC #endif diff --git a/src/Train/MeterWidget.cpp b/src/Train/MeterWidget.cpp index 55fc2b783..b5ddf5378 100644 --- a/src/Train/MeterWidget.cpp +++ b/src/Train/MeterWidget.cpp @@ -856,7 +856,7 @@ void ElevationZoomedMeterWidget::calcMinAndMax() #if defined(CXX17) #define CONSTEXPR constexpr #define CONSTEXPR_FUNC constexpr -#else constexpr +#else #define CONSTEXPR static const #define CONSTEXPR_FUNC #endif