diff options
author | smatz <smatz@openttd.org> | 2008-06-17 19:38:00 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-06-17 19:38:00 +0000 |
commit | 9da745b38110bc827ff6b5d5c9c3c9bf928c2335 (patch) | |
tree | b271027ea798874acb1d7592eb84626b079887e9 /src/sound | |
parent | dedb0033b3647d795a23118a22f227d7af33960d (diff) | |
download | openttd-9da745b38110bc827ff6b5d5c9c3c9bf928c2335.tar.xz |
(svn r13552) -Codechange: use TTD_ENDIAN comparations instead of tests if TTD_[BIG/LITTLE]_ENDIAN is defined
Diffstat (limited to 'src/sound')
-rw-r--r-- | src/sound/cocoa_s.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sound/cocoa_s.cpp b/src/sound/cocoa_s.cpp index 9921cb0cf..7e315fb75 100644 --- a/src/sound/cocoa_s.cpp +++ b/src/sound/cocoa_s.cpp @@ -24,7 +24,7 @@ #include "../debug.h" #include "../driver.h" #include "../mixer.h" -#include "../core/endian_func.hpp" +#include "../core/endian_type.hpp" #include "cocoa_s.h" @@ -61,9 +61,9 @@ const char *SoundDriver_Cocoa::Start(const char * const *parm) requestedDesc.mBitsPerChannel = 16; requestedDesc.mFormatFlags |= kLinearPCMFormatFlagIsSignedInteger; -#ifdef TTD_BIG_ENDIAN +#if TTD_ENDIAN == TTD_BIG_ENDIAN requestedDesc.mFormatFlags |= kLinearPCMFormatFlagIsBigEndian; -#endif +#endif /* TTD_ENDIAN == TTD_BIG_ENDIAN */ requestedDesc.mFramesPerPacket = 1; requestedDesc.mBytesPerFrame = requestedDesc.mBitsPerChannel * requestedDesc.mChannelsPerFrame / 8; |