* contrib/vmlog/vmlog.c: Use autoconf define WORDS_BIGENDIAN to determine endianess.
authorpm <none@none>
Sat, 26 May 2007 15:26:06 +0000 (15:26 +0000)
committerpm <none@none>
Sat, 26 May 2007 15:26:06 +0000 (15:26 +0000)
contrib/vmlog/vmlog.c

index 75818aa61b7b7774fe3e25985f4cc0a9bf8b67c1..c9b446133da935bc003b9102ec5c63a64ea4befe 100644 (file)
 #endif
 
 /* #define VMLOG_ENDIAN_CONVERT_WRITE */
-#define VMLOG_HOST_LITTLE_ENDIAN
+/* #define VMLOG_HOST_LITTLE_ENDIAN */
+
+#include "config.h"
+
+#if defined(WORDS_BIGENDIAN)
+#      define VMLOG_ENDIAN_CONVERT_WRITE
+#      undef VMLOG_HOST_LITTLE_ENDIAN
+#else
+#      undef VMLOG_ENDIAN_CONVERT_WRITE
+#      define VMLOG_HOST_LITTLE_ENDIAN
+#endif
+
 
 /*** constants *******************************************************/