From 86a37d0ed6762a113c3a43af27e8f98bdc8443ec Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 16 Jul 2018 10:31:42 +0200 Subject: Main, pcm/SampleFormat, command/Error: remove obsolete GCC version checks --- src/pcm/SampleFormat.hxx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/pcm') diff --git a/src/pcm/SampleFormat.hxx b/src/pcm/SampleFormat.hxx index 405add4e5..92c081f99 100644 --- a/src/pcm/SampleFormat.hxx +++ b/src/pcm/SampleFormat.hxx @@ -24,7 +24,7 @@ #include -#if defined(_WIN32) && GCC_CHECK_VERSION(4,6) +#if defined(_WIN32) /* on WIN32, "FLOAT" is already defined, and this triggers -Wshadow */ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wshadow" @@ -57,17 +57,14 @@ enum class SampleFormat : uint8_t { DSD, }; -#if defined(_WIN32) && GCC_CHECK_VERSION(4,6) +#if defined(_WIN32) #pragma GCC diagnostic pop #endif /** * Checks whether the sample format is valid. */ -#if !GCC_OLDER_THAN(5,0) -constexpr -#endif -static inline bool +constexpr bool audio_valid_sample_format(SampleFormat format) noexcept { switch (format) { @@ -86,10 +83,7 @@ audio_valid_sample_format(SampleFormat format) noexcept return false; } -#if !GCC_OLDER_THAN(5,0) -constexpr -#endif -static inline unsigned +constexpr unsigned sample_format_size(SampleFormat format) noexcept { switch (format) { -- cgit v1.2.3