aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2017-01-06 23:29:28 +0200
committerDavid Bremner <david@tethera.net>2017-01-08 10:50:49 -0400
commit5a957c3f33e6addaeb61a4bc4bddf3959acddcd1 (patch)
treef01013b431f33232b5595d3f41af4430e74d8ee9 /util
parentc906da9f60639594fb9c6b9d133aca9c49b3f586 (diff)
build & util: drop byte order configure check and endian util header
With the removal of the embedded libsha1, we lost the first and last user of the platform byte order checks. Remove them from configure, and remove the endian util header.
Diffstat (limited to 'util')
-rw-r--r--util/endian-util.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/util/endian-util.h b/util/endian-util.h
deleted file mode 100644
index bc80c40b..00000000
--- a/util/endian-util.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* this file mimics the macros present in recent GCC and CLANG */
-
-#ifndef _ENDIAN_UTIL_H
-#define _ENDIAN_UTIL_H
-
-/* This are prefixed with UTIL to avoid collisions
- *
- * You can use something like the following to define UTIL_BYTE_ORDER
- * in a configure script.
- */
-#if 0
-#include <stdio.h>
-#include <stdint.h>
-uint32_t test = 0x34333231;
-int main() { printf("%.4s\n", (const char*)&test); return 0; }
-#endif
-
-#define UTIL_ORDER_BIG_ENDIAN 4321
-#define UTIL_ORDER_LITTLE_ENDIAN 1234
-
-
-#if !defined(UTIL_BYTE_ORDER) || ((UTIL_BYTE_ORDER != UTIL_ORDER_BIG_ENDIAN) && \
- (UTIL_BYTE_ORDER != UTIL_ORDER_LITTLE_ENDIAN))
-#undef UTIL_BYTE_ORDER
-#ifdef __BYTE_ORDER__
-# if (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
-# define UTIL_BYTE_ORDER UTIL_ORDER_LITTLE_ENDIAN
-# elif (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
-# define UTIL_BYTE_ORDER UTIL_ORDER_BIG_ENDIAN
-# else
-# error "Unsupported __BYTE_ORDER__"
-# endif
-#else
-# error "UTIL_BYTE_ORDER not correctly defined and __BYTE_ORDER__ not defined."
-#endif
-#endif
-
-#endif