|
amiconn: apps dbtree.c,1.11,1.12: msg#00222systems.archos.rockbox.cvs
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> |
|---|---|---|
| Previous by Date: | bagder: tools configure,1.86,1.87: 00222, cvs |
|---|---|
| Next by Date: | bagder: bootloader FILES,NONE,1.1: 00222, cvs |
| Previous by Thread: | bagder: tools configure,1.86,1.87i: 00222, cvs |
| Next by Thread: | bagder: bootloader FILES,NONE,1.1: 00222, cvs |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |