summaryrefslogtreecommitdiff
path: root/apps/database.h
diff options
context:
space:
mode:
authorMichiel Van Der Kolk <not.valid@email.address>2005-04-28 14:48:12 +0000
committerMichiel Van Der Kolk <not.valid@email.address>2005-04-28 14:48:12 +0000
commit29909a341aa5b829b80472fe4a726120f2a6f514 (patch)
treecd4fd91ae658b5c6bdd8b8c156eb27244b92bc74 /apps/database.h
parent9ceac0a293b22e71dc534a89751f7c4be8b1a0cb (diff)
downloadrockbox-29909a341aa5b829b80472fe4a726120f2a6f514.zip
rockbox-29909a341aa5b829b80472fe4a726120f2a6f514.tar.gz
rockbox-29909a341aa5b829b80472fe4a726120f2a6f514.tar.bz2
rockbox-29909a341aa5b829b80472fe4a726120f2a6f514.tar.xz
Read searchquery from a search "file" (search tokenstream)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6372 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/database.h')
-rw-r--r--apps/database.h15
1 files changed, 6 insertions, 9 deletions
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)