Code

src/collectd.h: Check for `_BYTE_ORDER', too.
authorFlorian Forster <octo@huhu.verplant.org>
Thu, 1 May 2008 09:59:33 +0000 (11:59 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Thu, 1 May 2008 09:59:33 +0000 (11:59 +0200)
Apparently Solaris uses that name..

src/collectd.h

index 80d86ba8e698ac0c039122b22e9f452945cd7070..55aac160587a889e488554ac1009660047d3382b 100644 (file)
 #endif
 
 #ifndef BYTE_ORDER
-# ifdef __BYTE_ORDER
+# if defined(_BYTE_ORDER)
+#  define BYTE_ORDER _BYTE_ORDER
+# elif defined(__BYTE_ORDER)
 #  define BYTE_ORDER __BYTE_ORDER
 # endif
 #endif
 #ifndef BIG_ENDIAN
-# ifdef __BIG_ENDIAN
+# if defined(_BIG_ENDIAN)
+#  define BIG_ENDIAN _BIG_ENDIAN
+# elif defined(__BIG_ENDIAN)
 #  define BIG_ENDIAN __BIG_ENDIAN
 # endif
 #endif