diff options
author | Max Kellermann <max@musicpd.org> | 2018-07-16 10:31:42 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-07-16 11:04:05 +0200 |
commit | 86a37d0ed6762a113c3a43af27e8f98bdc8443ec (patch) | |
tree | 02813fe707d68f50232c13d162c17134b62fa176 /src/pcm | |
parent | 2fb5dbe62bae1e5c0ae57bc56fa55a5ba8b191cb (diff) |
Main, pcm/SampleFormat, command/Error: remove obsolete GCC version checks
Diffstat (limited to 'src/pcm')
-rw-r--r-- | src/pcm/SampleFormat.hxx | 14 |
1 files changed, 4 insertions, 10 deletions
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 <stdint.h> -#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) { |