diff options
-rw-r--r-- | firmware/export/system.h | 4 | ||||
-rw-r--r-- | tools/database/Makefile | 4 |
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 | |||
2 | SILENT = @ | 2 | SILENT = @ |
3 | endif | 3 | endif |
4 | INCLUDE = -I../../firmware/export \ | 4 | INCLUDE = -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 |
6 | FIRMINC = -I../../firmware/include -fno-builtin | 6 | FIRMINC = -I../../firmware/include -fno-builtin |
7 | DEFINES = -D__PCTOOL__ -DHAVE_TAGCACHE -DSIMULATOR -DCONFIG_CODEC=1 \ | 7 | DEFINES = -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 | ||