chiark / gitweb /
Horrid hack to recover run-time endianness for testing.
[disorder] / server / endian.c
diff --git a/server/endian.c b/server/endian.c
new file mode 100644 (file)
index 0000000..2e4b152
--- /dev/null
@@ -0,0 +1,20 @@
+#include <config.h>
+#include <stdio.h>
+
+int main(void) {
+#if WORDS_BIGENDIAN
+  puts("1");
+#else
+  puts("0");
+#endif
+  return 0;
+}
+
+/*
+Local Variables:
+c-basic-offset:2
+comment-column:40
+fill-column:79
+indent-tabs-mode:nil
+End:
+*/