diff --git a/src/include/switch_types.h b/src/include/switch_types.h index 64541cba88..61453e517b 100644 --- a/src/include/switch_types.h +++ b/src/include/switch_types.h @@ -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 */ diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index 726d936dfc..55ab2c48d5 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -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); }