summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-01-05 01:22:19 +0100
committerThomas Martitz <kugel@rockbox.org>2014-01-05 19:35:23 +0100
commit281d1fadb34242347da379ddeba75d2195148b4c (patch)
treedd1d1fb044d4e905c56b73e94d88a47ccc215a71 /apps
parentdd7b14173647c6e3326d705e5c4d802a35711030 (diff)
downloadrockbox-281d1fadb34242347da379ddeba75d2195148b4c.tar.gz
rockbox-281d1fadb34242347da379ddeba75d2195148b4c.zip
Do not include kernel.h in system.h.
system.h doesn't need it on its own and this change makes it less dependant on Rockbox internals. Change-Id: I4e1e4108a52a7b599627a829204eb82b392fc6d6
Diffstat (limited to 'apps')
-rw-r--r--apps/codec_thread.c1
-rw-r--r--apps/rbcodecconfig.h3
-rw-r--r--apps/recorder/bmp.c4
-rw-r--r--apps/recorder/resize.c8
-rw-r--r--apps/voice_thread.c2
5 files changed, 14 insertions, 4 deletions
diff --git a/apps/codec_thread.c b/apps/codec_thread.c
index 8f9f5a3c74..f2039d10e6 100644
--- a/apps/codec_thread.c
+++ b/apps/codec_thread.c
@@ -20,6 +20,7 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include "config.h"
#include "system.h"
#include "kernel.h"
diff --git a/apps/rbcodecconfig.h b/apps/rbcodecconfig.h
index c92415979f..92584187ea 100644
--- a/apps/rbcodecconfig.h
+++ b/apps/rbcodecconfig.h
@@ -18,6 +18,9 @@
* {,U}INT{8,16,32,64}_{MIN,MAX} */
#include "system.h"
+/* HZ, TIME_AFTER */
+#include "kernel.h"
+
/* Structure to record some info during processing call */
struct dsp_loop_context
{
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c
index e4eb588eb3..dfd6a0474e 100644
--- a/apps/recorder/bmp.c
+++ b/apps/recorder/bmp.c
@@ -38,6 +38,7 @@
ahead by whole lines, or read the next chunk of the current line
*/
+#define ROCKBOX_DEBUG_BMP_LOADER
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -53,7 +54,7 @@
#include "lcd-remote.h"
#endif
#ifdef ROCKBOX_DEBUG_BMP_LOADER
-#define BDEBUGF DEBUGF
+#define BDEBUGF printf
#else
#define BDEBUGF(...)
#endif
@@ -774,6 +775,7 @@ int read_bmp_fd(int fd,
#endif
.alpha_detected = false, .first_alpha_byte = 0x80,
.order = order,
+ .buf = NULL,
};
#if (LCD_DEPTH > 1 || (defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1)) && \
diff --git a/apps/recorder/resize.c b/apps/recorder/resize.c
index 1e45b66a24..32384537d4 100644
--- a/apps/recorder/resize.c
+++ b/apps/recorder/resize.c
@@ -31,12 +31,14 @@
*
****************************************************************************/
-#include <system.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <general.h>
-#include "inttypes.h"
+#include <stdint.h>
+
+#include "general.h"
+#include "kernel.h"
+#include "system.h"
#ifndef PLUGIN
#include "debug.h"
#endif
diff --git a/apps/voice_thread.c b/apps/voice_thread.c
index 7788f659b0..3b6fe5b3ba 100644
--- a/apps/voice_thread.c
+++ b/apps/voice_thread.c
@@ -18,8 +18,10 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include "config.h"
#include "system.h"
+#include "kernel.h"
#include "core_alloc.h"
#include "thread.h"
#include "appevents.h"