[Freeswitch-svn] [commit] r9037 - in freeswitch/trunk/src: . include

Freeswitch SVN anthm at freeswitch.org
Tue Jul 15 12:15:50 EDT 2008


Author: anthm
Date: Tue Jul 15 12:15:49 2008
New Revision: 9037

Modified:
   freeswitch/trunk/src/include/switch_types.h
   freeswitch/trunk/src/switch_ivr_play_say.c

Log:
use our SWITCH_BYTE_ORDER macro

Modified: freeswitch/trunk/src/include/switch_types.h
==============================================================================
--- freeswitch/trunk/src/include/switch_types.h	(original)
+++ freeswitch/trunk/src/include/switch_types.h	Tue Jul 15 12:15:49 2008
@@ -445,7 +445,7 @@
 #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           */

Modified: freeswitch/trunk/src/switch_ivr_play_say.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_play_say.c	(original)
+++ freeswitch/trunk/src/switch_ivr_play_say.c	Tue Jul 15 12:15:49 2008
@@ -1116,7 +1116,7 @@
 			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);
 		}



More information about the Freeswitch-svn mailing list