Skip to content

Commit

Permalink
cdp: use in tree portable endianness macros
Browse files Browse the repository at this point in the history
- replace WORDS_BIGENDIAN with __IS_BIG_ENDIAN
- not all platforms define WORDS_BIGENDIAN on big endian archs
  • Loading branch information
sjthomason committed Aug 9, 2016
1 parent 830b48b commit bf4d9d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/cdp/diameter.h
Expand Up @@ -47,6 +47,7 @@

#include "utils.h"
#include <ctype.h>
#include "../../endianness.h"

#include "diameter_code_result.h"
#include "diameter_code_avp.h"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bf4d9d8

Please sign in to comment.