diff options
author | Max Kellermann <max@duempel.org> | 2013-10-16 21:09:19 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-16 22:09:44 +0200 |
commit | 5e26e2ab1dadb1e4176d5a4cac03100a7d21c22f (patch) | |
tree | fccf16ec9b798ab06913250073e003b2830d2817 /src/output/OssOutputPlugin.cxx | |
parent | 08eca827b659f2becc872c151919948b5a9ffe4d (diff) | |
download | mpd-5e26e2ab1dadb1e4176d5a4cac03100a7d21c22f.tar.gz mpd-5e26e2ab1dadb1e4176d5a4cac03100a7d21c22f.tar.xz mpd-5e26e2ab1dadb1e4176d5a4cac03100a7d21c22f.zip |
system/ByteOrder: new library for byte ordering / endianess
Replacing GLib macros.
Diffstat (limited to '')
-rw-r--r-- | src/output/OssOutputPlugin.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/output/OssOutputPlugin.cxx b/src/output/OssOutputPlugin.cxx index 147ad7975..68f2a38aa 100644 --- a/src/output/OssOutputPlugin.cxx +++ b/src/output/OssOutputPlugin.cxx @@ -25,10 +25,9 @@ #include "util/Error.hxx" #include "util/Domain.hxx" #include "util/Macros.hxx" +#include "system/ByteOrder.hxx" #include "Log.hxx" -#include <glib.h> - #include <sys/stat.h> #include <sys/ioctl.h> #include <fcntl.h> @@ -532,7 +531,7 @@ oss_probe_sample_format(int fd, SampleFormat sample_format, pcm_export.Open(sample_format, 0, false, false, oss_format == AFMT_S24_PACKED, oss_format == AFMT_S24_PACKED && - G_BYTE_ORDER != G_LITTLE_ENDIAN); + !IsLittleEndian()); #endif return SUCCESS; |