summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/export/system.h4
-rw-r--r--tools/database/Makefile4
2 files changed, 3 insertions, 5 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index aa95167b8a..196c20a33b 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -121,10 +121,9 @@ int get_cpu_boost_counter(void);
121 ptr = (typeof(ptr))tmp_ptr1; \ 121 ptr = (typeof(ptr))tmp_ptr1; \
122} 122}
123 123
124#ifndef __PCTOOL__
125 124
126/* newer? SDL includes endian.h, So we ignore it */ 125/* newer? SDL includes endian.h, So we ignore it */
127#ifdef SIMULATOR 126#if defined(SIMULATOR) || defined(__PCTOOL__)
128#undef letoh16 127#undef letoh16
129#undef letoh32 128#undef letoh32
130#undef htole16 129#undef htole16
@@ -160,7 +159,6 @@ int get_cpu_boost_counter(void);
160#define swap_odd_even_le32(x) (x) 159#define swap_odd_even_le32(x) (x)
161#endif 160#endif
162 161
163#endif
164 162
165/* static endianness conversion */ 163/* static endianness conversion */
166#define SWAP_16(x) ((typeof(x))(unsigned short)(((unsigned short)(x) >> 8) | \ 164#define SWAP_16(x) ((typeof(x))(unsigned short)(((unsigned short)(x) >> 8) | \
diff --git a/tools/database/Makefile b/tools/database/Makefile
index fc59dd6fc0..d61be90ed2 100644
--- a/tools/database/Makefile
+++ b/tools/database/Makefile
@@ -2,7 +2,7 @@ ifndef V
2SILENT = @ 2SILENT = @
3endif 3endif
4INCLUDE = -I../../firmware/export \ 4INCLUDE = -I../../firmware/export \
5 -I../../apps -I../../uisimulator/sdl -I/usr/include/SDL 5 -I../../apps -I../../apps/gui -I../../uisimulator/sdl -I/usr/include/SDL
6FIRMINC = -I../../firmware/include -fno-builtin 6FIRMINC = -I../../firmware/include -fno-builtin
7DEFINES = -D__PCTOOL__ -DHAVE_TAGCACHE -DSIMULATOR -DCONFIG_CODEC=1 \ 7DEFINES = -D__PCTOOL__ -DHAVE_TAGCACHE -DSIMULATOR -DCONFIG_CODEC=1 \
8 -DROCKBOX_LITTLE_ENDIAN -DROCKBOX_DIR=\".rockbox\" -DROCKBOX_HAS_LOGF \ 8 -DROCKBOX_LITTLE_ENDIAN -DROCKBOX_DIR=\".rockbox\" -DROCKBOX_HAS_LOGF \
@@ -13,7 +13,7 @@ SRC = database.o tagcache.o replaygain.o \
13 metadata.o metadata_common.o mp3data.o \ 13 metadata.o metadata_common.o mp3data.o \
14 a52.o mp3.o adx.o mp4.o aiff.o mpc.o ape.o ogg.o \ 14 a52.o mp3.o adx.o mp4.o aiff.o mpc.o ape.o ogg.o \
15 asap.o sid.o asf.o spc.o flac.o vorbis.o wave.o \ 15 asap.o sid.o asf.o spc.o flac.o vorbis.o wave.o \
16 mod.o wavpack.o monkeys.o rm.o \ 16 mod.o wavpack.o monkeys.o rm.o nsf.c\
17 logf.o unicode.o ctype.o structec.o crc32.o io.o \ 17 logf.o unicode.o ctype.o structec.o crc32.o io.o \
18 misc.o strlcpy.o fixedpoint.o 18 misc.o strlcpy.o fixedpoint.o
19 19