aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/netif/rtp.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-03-22 09:37:17 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-03-22 09:38:36 +0100
commit86115434f1f60afe51a87d4c1674a3e2c0d18700 (patch)
tree42c3f4953443225a51421876077b84720825d42a /include/osmocom/netif/rtp.h
parentd69c1ca8fab461ca5cdf65215261df0b2582f7ad (diff)
endian: Use the new endian macros for portability
Use the new macros to deal with little/big endian. Im a bit worried to make this change due the little test coverage in this module but in case of a typo the elements would not be defined.
Diffstat (limited to 'include/osmocom/netif/rtp.h')
-rw-r--r--include/osmocom/netif/rtp.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/osmocom/netif/rtp.h b/include/osmocom/netif/rtp.h
index 1854d6c..729e5c9 100644
--- a/include/osmocom/netif/rtp.h
+++ b/include/osmocom/netif/rtp.h
@@ -1,16 +1,18 @@
#ifndef _OSMO_RTP_H_
#define _OSMO_RTP_H_
+#include <osmocom/core/endian.h>
+
/* RTP header as defined by RFC 3550 */
struct rtp_hdr {
-#if __BYTE_ORDER == __LITTLE_ENDIAN
+#if OSMO_IS_LITTLE_ENDIAN
uint8_t csrc_count:4,
extension:1,
padding:1,
version:2;
uint8_t payload_type:7,
marker:1;
-#elif __BYTE_ORDER == __BIG_ENDIAN
+#elif OSMO_IS_BIG_ENDIAN
uint8_t version:2,
padding:1,
extension:1,