use our SWITCH_BYTE_ORDER macro

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9037 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-07-15 16:15:49 +00:00
parent f7f58ec531
commit 12582c0bf5
2 changed files with 2 additions and 2 deletions

View File

@ -445,7 +445,7 @@ typedef uint32_t switch_rtp_flag_t;
#pragma pack(push, r1, 1)
#endif
#if __BYTE_ORDER == __BIG_ENDIAN
#if SWITCH_BYTE_ORDER == __BIG_ENDIAN
typedef struct {
unsigned version:2; /* protocol version */
unsigned p:1; /* padding flag */

View File

@ -1116,7 +1116,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
write_frame.timestamp = timer.samplecount;
}
#ifndef WIN32
#if __BYTE_ORDER == __BIG_ENDIAN
#if SWITCH_BYTE_ORDER == __BIG_ENDIAN
if (!asis) {
switch_swap_linear(write_frame.data, (int) write_frame.datalen / 2);
}