fix G_BYTE_ORDER check

"#ifdef G_BYTE_ORDER == G_BIG_ENDIAN" cannot work, of course.
This commit is contained in:
Max Kellermann 2009-01-05 12:40:57 +01:00
parent b8a1cf30e8
commit d9c2960a55
4 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@
#include <stdlib.h>
#include <unistd.h>
#ifdef G_BYTE_ORDER == G_BIG_ENDIAN
#if G_BYTE_ORDER == G_BIG_ENDIAN
#define OGG_DECODE_USE_BIGENDIAN 1
#else
#define OGG_DECODE_USE_BIGENDIAN 0

View File

@ -34,7 +34,7 @@
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "mvp"
#ifdef G_BYTE_ORDER == G_BIG_ENDIAN
#if G_BYTE_ORDER == G_BIG_ENDIAN
#define MVP_USE_LITTLE_ENDIAN false
#else
#define MVP_USE_LITTLE_ENDIAN true

View File

@ -40,7 +40,7 @@
# include <sys/soundcard.h>
#endif /* !(defined(__OpenBSD__) || defined(__NetBSD__) */
#ifdef G_BYTE_ORDER == G_BIG_ENDIAN
#if G_BYTE_ORDER == G_BIG_ENDIAN
# define AFMT_S16_MPD AFMT_S16_BE
#else
# define AFMT_S16_MPD AFMT_S16_LE

View File

@ -264,7 +264,7 @@ osx_openDevice(void *data, struct audio_format *audioFormat)
streamDesc.mSampleRate = audioFormat->sample_rate;
streamDesc.mFormatID = kAudioFormatLinearPCM;
streamDesc.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger;
#ifdef G_BYTE_ORDER == G_BIG_ENDIAN
#if G_BYTE_ORDER == G_BIG_ENDIAN
streamDesc.mFormatFlags |= kLinearPCMFormatFlagIsBigEndian;
#endif