]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
use our SWITCH_BYTE_ORDER macro
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 15 Jul 2008 16:15:49 +0000 (16:15 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 15 Jul 2008 16:15:49 +0000 (16:15 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9037 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_types.h
src/switch_ivr_play_say.c

index 64541cba882dd985fc017be6f4e1ddc3be96c97b..61453e517ba7dc5d0d19c5f134a3d06e90d06817 100644 (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           */
index 726d936dfcf89542eed46ea7b6b0e525a61ec3c4..55ab2c48d5bbb246a8b3a51fbba062e6f27a0264 100644 (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);
                }