summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Zheng <kevinz5000@gmail.com>2013-10-17 20:35:48 -0500
committerFrank Gevaerts <frank@gevaerts.be>2013-10-20 16:52:46 +0200
commit4626b1770be80878a1f8085df08838bbadf1a167 (patch)
tree71d5b194a79f713006c9d327cf91f7ba3f08a70d
parent6845f6c3969f44275a4255d6d4251660dc735dd1 (diff)
downloadrockbox-4626b1770be80878a1f8085df08838bbadf1a167.tar.gz
rockbox-4626b1770be80878a1f8085df08838bbadf1a167.zip
Add missing #include statements.
Although Linux accepts several implicit definitions of SEEK_END found in stdio.h, the compiler on FreeBSD won't. Rockbox compilation will fail without stdio.h included. There is a precedent for including this header, see lib/rbcodec/codecs/libtremor/ivorbisfile.h. Change-Id: I58510101b59a354cd6601cb3f323f385a824d2e8 Reviewed-on: http://gerrit.rockbox.org/639 Tested-by: Kevin Zheng <kevinz5000@gmail.com> Reviewed-by: Frank Gevaerts <frank@gevaerts.be>
-rw-r--r--lib/rbcodec/codecs/aiff_enc.c2
-rw-r--r--lib/rbcodec/codecs/mp3_enc.c2
-rw-r--r--lib/rbcodec/codecs/wav_enc.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/aiff_enc.c b/lib/rbcodec/codecs/aiff_enc.c
index fb8db384a3..f199e70743 100644
--- a/lib/rbcodec/codecs/aiff_enc.c
+++ b/lib/rbcodec/codecs/aiff_enc.c
@@ -21,6 +21,8 @@
****************************************************************************/
#include <inttypes.h>
+#include <stdio.h>
+
#include "codeclib.h"
CODEC_ENC_HEADER
diff --git a/lib/rbcodec/codecs/mp3_enc.c b/lib/rbcodec/codecs/mp3_enc.c
index ebbd323b6f..45bc3892c5 100644
--- a/lib/rbcodec/codecs/mp3_enc.c
+++ b/lib/rbcodec/codecs/mp3_enc.c
@@ -34,6 +34,8 @@
// Library General Public License for more details.
#include <inttypes.h>
+#include <stdio.h>
+
#include "codeclib.h"
CODEC_ENC_HEADER
diff --git a/lib/rbcodec/codecs/wav_enc.c b/lib/rbcodec/codecs/wav_enc.c
index 71bb652374..93bb9aa8ac 100644
--- a/lib/rbcodec/codecs/wav_enc.c
+++ b/lib/rbcodec/codecs/wav_enc.c
@@ -21,6 +21,8 @@
****************************************************************************/
#include <inttypes.h>
+#include <stdio.h>
+
#include "codeclib.h"
CODEC_ENC_HEADER