freebsd-ports/www/winhelpcgi/files/patch-bigend.h
Sergey Matveychuk ab3a47e081 - Update to 1.0rc3
- Try to unbreak on ia64
- While I'm here: add USE_APACHE

PR:		ports/77081
Submitted by:	maintainer
2005-02-08 18:54:17 +00:00

17 lines
589 B
C

--- libhlpaccess/bigend.h.orig Sun May 16 13:35:18 2004
+++ libhlpaccess/bigend.h Wed Jan 5 17:00:48 2005
@@ -4,9 +4,11 @@
*
*/
-#if defined(__powerpc__) || defined(__ppc__) || defined(__sparc__) || defined(_AIX)
+#include <sys/endian.h>
+
+#if BYTE_ORDER == BIG_ENDIAN
# define BIGENDIAN /* This is a big-endian machine MSB is the first Byte */
-#elif defined(__i386__) || defined(__alpha__) || defined(__amd64__)
+#elif BYTE_ORDER == LITTLE_ENDIAN
# define LITTLEENDIAN /* This is a little-endian machine MSB is the last Byte */
#else
# error Endianness undefined