Created
June 11, 2012 02:25
-
-
Save ToadKing/2908167 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 3b8f02c6df7f5e25ed6c17b4405a8d2bf8bf5cda Mon Sep 17 00:00:00 2001 | |
From: Toad King <toadking@toadking.com> | |
Date: Sun, 10 Jun 2012 22:24:25 -0400 | |
Subject: [PATCH] Fix byte order detection | |
--- | |
src/port.h | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/src/port.h b/src/port.h | |
index 7c27b56..3a127e1 100644 | |
--- a/src/port.h | |
+++ b/src/port.h | |
@@ -271,7 +271,7 @@ void _makepath (char * path, const char * a, const char * dir, const char * fnam | |
#define SLASH_CHAR '/' | |
#endif | |
-#if defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__) || defined(__x86_64__) || defined(__alpha__) || defined(__MIPSEL__) || defined(_M_IX86) || defined(_M_X64) | |
+#if defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__) || defined(__x86_64__) || defined(__alpha__) || defined(__MIPSEL__) || defined(_M_IX86) || defined(_M_X64) || (defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)) | |
#define LSB_FIRST | |
#define FAST_LSB_WORD_ACCESS | |
#else | |
-- | |
1.7.10.msysgit.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment