Skip to content

Commit

Permalink
acc: 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 87fa15a commit 67d5800
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/acc/diam_message.h
Expand Up @@ -38,6 +38,7 @@

#include "../../str.h"
#include "../../mem/mem.h"
#include "../../endianness.h"

#define ad_malloc pkg_malloc
#define ad_free pkg_free
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 67d5800

Please sign in to comment.