- cpp fix in bigendian code
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 30 Mar 2004 09:55:49 +0000 (09:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    aria-gcc.patch -> 1.1

aria-gcc.patch [new file with mode: 0644]

diff --git a/aria-gcc.patch b/aria-gcc.patch
new file mode 100644 (file)
index 0000000..700b1fd
--- /dev/null
@@ -0,0 +1,13 @@
+--- aria-1.0.0/src/md5.c.orig  Sat May 19 20:38:59 2001
++++ aria-1.0.0/src/md5.c       Tue Mar 30 11:51:34 2004
+@@ -291,8 +291,8 @@
+     p = hd->buf;
+   #ifdef BIG_ENDIAN_HOST
+-    #define X(a) do { *p++ = hd->##a    ; *p++ = hd->##a >> 8;      \
+-                    *p++ = hd->##a >> 16; *p++ = hd->##a >> 24; } while(0)
++    #define X(a) do { *p++ = hd->a      ; *p++ = hd->a >> 8;      \
++                    *p++ = hd->a >> 16; *p++ = hd->a >> 24; } while(0)
+   #else /* little endian */
+     /*#define X(a) do { *(u32*)p = hd->##a ; p += 4; } while(0)*/
+     /* Unixware's cpp doesn't like the above construct so we do it his way:
This page took 0.149551 seconds and 4 git commands to generate.