Module: kamailio Branch: master Commit: 67d5800a045a6e759467b9f14cac52de937b3bd7 URL: https://github.com/kamailio/kamailio/commit/67d5800a045a6e759467b9f14cac52de...
Author: Spencer Thomason spencer@whiteskycommunications.com Committer: Spencer Thomason spencer@whiteskycommunications.com Date: 2016-08-09T15:15:07-07:00
acc: 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/acc/diam_message.h
---
Diff: https://github.com/kamailio/kamailio/commit/67d5800a045a6e759467b9f14cac52de... Patch: https://github.com/kamailio/kamailio/commit/67d5800a045a6e759467b9f14cac52de...
---
diff --git a/modules/acc/diam_message.h b/modules/acc/diam_message.h index d5e3535..b1d81cb 100644 --- a/modules/acc/diam_message.h +++ b/modules/acc/diam_message.h @@ -38,6 +38,7 @@
#include "../../str.h" #include "../../mem/mem.h" +#include "../../endianness.h"
#define ad_malloc pkg_malloc #define ad_free pkg_free @@ -68,7 +69,7 @@
/* message codes */ -#ifndef WORDS_BIGENDIAN +#ifndef __IS_BIG_ENDIAN #define AS_MSG_CODE 0x12010000 #define AC_MSG_CODE 0x0f010000 #define CE_MSG_CODE 0x01010000