SOURCES: spgmr08-big_endian-fix.patch (NEW) - fix programming on big-endian...

sparky sparky at pld-linux.org
Sun Dec 21 01:41:47 CET 2008


Author: sparky                       Date: Sun Dec 21 00:41:47 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix programming on big-endian machines

---- Files affected:
SOURCES:
   spgmr08-big_endian-fix.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/spgmr08-big_endian-fix.patch
diff -u /dev/null SOURCES/spgmr08-big_endian-fix.patch:1.1
--- /dev/null	Sun Dec 21 01:41:48 2008
+++ SOURCES/spgmr08-big_endian-fix.patch	Sun Dec 21 01:41:42 2008
@@ -0,0 +1,16 @@
+--- spgmr08-0.12/mongp32.c	2003-12-16 22:47:56.000000000 +0100
++++ spgmr08-0.12.working/mongp32.c	2008-12-21 00:52:50.000000000 +0100
+@@ -49,9 +49,12 @@
+ 	char bytes[4];
+ } eu;
+ 
+-#ifdef __LITTLE_ENDIAN
++#if __BYTE_ORDER == __LITTLE_ENDIAN
+ #define hbyte eu.bytes[1]
+ #define lbyte eu.bytes[0]
++#else
++#define hbyte eu.bytes[2]
++#define lbyte eu.bytes[3]
+ #endif
+ 
+ // need these functions:
================================================================


More information about the pld-cvs-commit mailing list