logo       

amiconn: apps dbtree.c,1.11,1.12: msg#00222

systems.archos.rockbox.cvs

Subject: amiconn: apps dbtree.c,1.11,1.12

Update of /cvsroot/rockbox/apps
In directory labb:/tmp/cvs-serv3343/apps

Modified Files:
dbtree.c
Log Message:
Proper workaround for cygwin not defining LITTLE_ENDIAN. This is needed in more
than one place in the source.

Index: dbtree.c
===================================================================
RCS file: /cvsroot/rockbox/apps/dbtree.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- dbtree.c 28 Jan 2005 23:04:19 -0000 1.11
+++ dbtree.c 29 Jan 2005 06:43:44 -0000 1.12
@@ -43,7 +43,12 @@
#include "lang.h"
#include "keyboard.h"

-#if defined(LITTLE_ENDIAN) || defined(_X86_)
+/* workaround for cygwin not defining endian macros */
+#if !defined(LITTLE_ENDIAN) && !defined(BIG_ENDIAN) && defined(_X86_)
+#define LITTLE_ENDIAN
+#endif
+
+#ifdef LITTLE_ENDIAN
#define BE32(_x_) (((_x_ & 0xff000000) >> 24) | \
((_x_ & 0x00ff0000) >> 8) | \
((_x_ & 0x0000ff00) << 8) | \

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox-cvs



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise