From 29909a341aa5b829b80472fe4a726120f2a6f514 Mon Sep 17 00:00:00 2001 From: Michiel Van Der Kolk Date: Thu, 28 Apr 2005 14:48:12 +0000 Subject: Read searchquery from a search "file" (search tokenstream) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6372 a1c6a512-1295-4272-9138-f99709370657 --- apps/database.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'apps/database.h') diff --git a/apps/database.h b/apps/database.h index 3828257..facfb53 100644 --- a/apps/database.h +++ b/apps/database.h @@ -19,18 +19,15 @@ #ifndef DATABASE_H #define DATABASE_H -/* workaround for cygwin not defining endian macros */ -#if !defined(LITTLE_ENDIAN) && !defined(BIG_ENDIAN) && defined(_X86_) -#define LITTLE_ENDIAN -#endif - -#ifdef LITTLE_ENDIAN +#ifdef ROCKBOX_LITTLE_ENDIAN #define BE32(_x_) (((_x_ & 0xff000000) >> 24) | \ - ((_x_ & 0x00ff0000) >> 8) | \ - ((_x_ & 0x0000ff00) << 8) | \ - ((_x_ & 0x000000ff) << 24)) + ((_x_ & 0x00ff0000) >> 8) | \ + ((_x_ & 0x0000ff00) << 8) | \ + ((_x_ & 0x000000ff) << 24)) +#define BE16(_x_) ( ((_x_&0xFF00) >> 8)|((_x_&0xFF)<<8)) #else #define BE32(_x_) _x_ +#define BE16(_x_) _x_ #endif #define SONGENTRY_SIZE (tagdbheader.songlen+12+tagdbheader.genrelen+4) -- cgit v1.1