diff options
author | Kevin Zheng <kevinz5000@gmail.com> | 2013-10-17 20:35:48 -0500 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2013-10-20 16:52:46 +0200 |
commit | 4626b1770be80878a1f8085df08838bbadf1a167 (patch) | |
tree | 71d5b194a79f713006c9d327cf91f7ba3f08a70d /lib | |
parent | 6845f6c3969f44275a4255d6d4251660dc735dd1 (diff) | |
download | rockbox-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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbcodec/codecs/aiff_enc.c | 2 | ||||
-rw-r--r-- | lib/rbcodec/codecs/mp3_enc.c | 2 | ||||
-rw-r--r-- | lib/rbcodec/codecs/wav_enc.c | 2 |
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 @@ | |||
21 | ****************************************************************************/ | 21 | ****************************************************************************/ |
22 | 22 | ||
23 | #include <inttypes.h> | 23 | #include <inttypes.h> |
24 | #include <stdio.h> | ||
25 | |||
24 | #include "codeclib.h" | 26 | #include "codeclib.h" |
25 | 27 | ||
26 | CODEC_ENC_HEADER | 28 | 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 @@ | |||
34 | // Library General Public License for more details. | 34 | // Library General Public License for more details. |
35 | 35 | ||
36 | #include <inttypes.h> | 36 | #include <inttypes.h> |
37 | #include <stdio.h> | ||
38 | |||
37 | #include "codeclib.h" | 39 | #include "codeclib.h" |
38 | 40 | ||
39 | CODEC_ENC_HEADER | 41 | 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 @@ | |||
21 | ****************************************************************************/ | 21 | ****************************************************************************/ |
22 | 22 | ||
23 | #include <inttypes.h> | 23 | #include <inttypes.h> |
24 | #include <stdio.h> | ||
25 | |||
24 | #include "codeclib.h" | 26 | #include "codeclib.h" |
25 | 27 | ||
26 | CODEC_ENC_HEADER | 28 | CODEC_ENC_HEADER |