Sfoglia il codice sorgente

acc: use in tree portable endianness macros

- replace WORDS_BIGENDIAN with __IS_BIG_ENDIAN
- not all platforms define WORDS_BIGENDIAN on big endian archs
Spencer Thomason 9 anni fa
parent
commit
67d5800a04
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      modules/acc/diam_message.h

+ 2 - 1
modules/acc/diam_message.h

@@ -38,6 +38,7 @@
 
 
 #include "../../str.h"
 #include "../../str.h"
 #include "../../mem/mem.h"
 #include "../../mem/mem.h"
+#include "../../endianness.h"
 
 
 #define ad_malloc	pkg_malloc
 #define ad_malloc	pkg_malloc
 #define ad_free		pkg_free
 #define ad_free		pkg_free
@@ -68,7 +69,7 @@
 
 
 /* message codes
 /* message codes
  */
  */
-#ifndef WORDS_BIGENDIAN
+#ifndef __IS_BIG_ENDIAN
 	#define AS_MSG_CODE      0x12010000
 	#define AS_MSG_CODE      0x12010000
 	#define AC_MSG_CODE      0x0f010000
 	#define AC_MSG_CODE      0x0f010000
 	#define CE_MSG_CODE      0x01010000
 	#define CE_MSG_CODE      0x01010000