From 5d8a1cf7155130bd8101090d7e1d0c2f90d9b123 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 10 Jul 2014 22:06:10 -0500 Subject: add initial CMake and Visual Studio build support This moves the compatibility include files from include to include/compat so we can use the awful MS C compiler <../include/> trick to emulate the GNU #include_next extension. This also removes a few old compat files we do not need anymore. --- include/machine/endian.h | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 include/machine/endian.h (limited to 'include/machine') diff --git a/include/machine/endian.h b/include/machine/endian.h deleted file mode 100644 index 5ec39af..0000000 --- a/include/machine/endian.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Public domain - * machine/endian.h compatibility shim - */ - -#ifndef LIBCRYPTOCOMPAT_BYTE_ORDER_H_ -#define LIBCRYPTOCOMPAT_BYTE_ORDER_H_ - -#if defined(_WIN32) - -#define LITTLE_ENDIAN 1234 -#define BIG_ENDIAN 4321 -#define PDP_ENDIAN 3412 - -/* - * Use GCC and Visual Studio compiler defines to determine endian. - */ -#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ -#define BYTE_ORDER LITTLE_ENDIAN -#else -#define BYTE_ORDER BIG_ENDIAN -#endif - -#elif defined(__linux__) -#include - -#elif defined(__sun) || defined(_AIX) || defined(__hpux) -#include -#include - -#elif defined(__sgi) -#include -#include - -#else -#include_next - -#endif - -#endif -- cgit v1.2.3-55-g6feb