diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2021-04-10 10:42:38 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-04-10 12:08:12 -0400 |
commit | bc416ff5905cd5b0707097971bb9a09f5961a8ae (patch) | |
tree | 1701ef544064ce6f7d5d4aa798040467b9e0a2a9 /firmware | |
parent | 1303be343784ad2a3de30b10d2ac1ec350242f43 (diff) | |
download | rockbox-bc416ff5905cd5b0707097971bb9a09f5961a8ae.tar.gz rockbox-bc416ff5905cd5b0707097971bb9a09f5961a8ae.zip |
misc: Only include rbpaths.h and string-extra.h in places that need it
(Don't include rbpaths.h in settings.h, or string-extra.h in rbpaths.h)
Build-tested on rocker, erosq, mini2g, nano2g,
xduoox3, clipzip, dx50, and uisim
Change-Id: If32e9c9910f5c8247a655cb64522b84d6d7ccbb5
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/audio/erosqlinux_codec.c | 3 | ||||
-rw-r--r-- | firmware/export/rbpaths.h | 2 | ||||
-rw-r--r-- | firmware/font.c | 1 |
3 files changed, 1 insertions, 5 deletions
diff --git a/firmware/drivers/audio/erosqlinux_codec.c b/firmware/drivers/audio/erosqlinux_codec.c index 58104a61e6..abb4fea01f 100644 --- a/firmware/drivers/audio/erosqlinux_codec.c +++ b/firmware/drivers/audio/erosqlinux_codec.c | |||
@@ -20,9 +20,6 @@ | |||
20 | * KIND, either express or implied. | 20 | * KIND, either express or implied. |
21 | * | 21 | * |
22 | ****************************************************************************/ | 22 | ****************************************************************************/ |
23 | #define RB_FILESYSTEM_OS // VERY important this is before settings.h | ||
24 | // because that pulls in rbpaths.h which breaks open() | ||
25 | |||
26 | //#define LOGF_ENABLE | 23 | //#define LOGF_ENABLE |
27 | 24 | ||
28 | #include "config.h" | 25 | #include "config.h" |
diff --git a/firmware/export/rbpaths.h b/firmware/export/rbpaths.h index f53d0eb480..a3042d80bc 100644 --- a/firmware/export/rbpaths.h +++ b/firmware/export/rbpaths.h | |||
@@ -24,8 +24,6 @@ | |||
24 | 24 | ||
25 | #include <stdbool.h> | 25 | #include <stdbool.h> |
26 | #include "autoconf.h" | 26 | #include "autoconf.h" |
27 | #include "string-extra.h" | ||
28 | |||
29 | 27 | ||
30 | /* name of directory where configuration, fonts and other data | 28 | /* name of directory where configuration, fonts and other data |
31 | * files are stored */ | 29 | * files are stored */ |
diff --git a/firmware/font.c b/firmware/font.c index 595410fed2..b8fa1c537f 100644 --- a/firmware/font.c +++ b/firmware/font.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include "system.h" | 34 | #include "system.h" |
35 | #include "kernel.h" | 35 | #include "kernel.h" |
36 | #include "lcd.h" | 36 | #include "lcd.h" |
37 | #include "string-extra.h" | ||
37 | #include "font.h" | 38 | #include "font.h" |
38 | #include "file.h" | 39 | #include "file.h" |
39 | #include "core_alloc.h" | 40 | #include "core_alloc.h" |