diff options
author | Max Kellermann <max@musicpd.org> | 2017-12-12 10:22:20 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-12-12 10:22:20 +0100 |
commit | dfaf08743cade4c10c464bfbbb15d8f96c6e5cd9 (patch) | |
tree | 09be190640403b134b8967e1daf0d72445b146ed /src/pcm/SampleFormat.hxx | |
parent | d9552d8a6d2fbc916e5a7bf6e75c2d3b4f29c38e (diff) |
*: check defined(_WIN32) instead of defined(WIN32)
Only _WIN32 is defined by the compiler, and WIN32 is not standardized
and may be missing.
Closes #169
Diffstat (limited to 'src/pcm/SampleFormat.hxx')
-rw-r--r-- | src/pcm/SampleFormat.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pcm/SampleFormat.hxx b/src/pcm/SampleFormat.hxx index febb89ff5..9d956b7f9 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) && GCC_CHECK_VERSION(4,6) /* on WIN32, "FLOAT" is already defined, and this triggers -Wshadow */ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wshadow" @@ -57,7 +57,7 @@ enum class SampleFormat : uint8_t { DSD, }; -#if defined(WIN32) && GCC_CHECK_VERSION(4,6) +#if defined(_WIN32) && GCC_CHECK_VERSION(4,6) #pragma GCC diagnostic pop #endif |