[sr-dev] git:master:bf4d9d80: cdp: use in tree portable endianness macros

Spencer Thomason spencer at whiteskycommunications.com
Wed Aug 10 09:07:51 CEST 2016


Module: kamailio
Branch: master
Commit: bf4d9d803d560417461287759c124bab4389155f
URL: https://github.com/kamailio/kamailio/commit/bf4d9d803d560417461287759c124bab4389155f

Author: Spencer Thomason <spencer at whiteskycommunications.com>
Committer: Spencer Thomason <spencer at whiteskycommunications.com>
Date: 2016-08-09T15:16:53-07:00

cdp: use in tree portable endianness macros

- replace WORDS_BIGENDIAN with __IS_BIG_ENDIAN
- not all platforms define WORDS_BIGENDIAN on big endian archs

---

Modified: modules/cdp/diameter.h

---

Diff:  https://github.com/kamailio/kamailio/commit/bf4d9d803d560417461287759c124bab4389155f.diff
Patch: https://github.com/kamailio/kamailio/commit/bf4d9d803d560417461287759c124bab4389155f.patch

---

diff --git a/modules/cdp/diameter.h b/modules/cdp/diameter.h
index f5ce410..df1b450 100644
--- a/modules/cdp/diameter.h
+++ b/modules/cdp/diameter.h
@@ -47,6 +47,7 @@
 
 #include "utils.h"
 #include <ctype.h>
+#include "../../endianness.h"
 
 #include "diameter_code_result.h"
 #include "diameter_code_avp.h"
@@ -104,7 +105,7 @@
 	AVP_VENDOR_ID_SIZE*(((_flags_)&AAA_AVP_FLAG_VENDOR_SPECIFIC)!=0) )
 
 /* mesage codes */
-#ifndef WORDS_BIGENDIAN
+#ifndef __IS_BIG_ENDIAN
 	#define AS_MSG_CODE      0x12010000
 	#define AC_MSG_CODE      0x0f010000
 	#define CE_MSG_CODE      0x01010000




More information about the sr-dev mailing list