From 50a6ca39ad4ed01922aa4f755f0ca579788226cf Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 6 May 2010 21:04:40 +0000 Subject: Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes). This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657 --- apps/replaygain.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'apps/replaygain.c') diff --git a/apps/replaygain.c b/apps/replaygain.c index 6ece1104b4..81f1a45ad7 100644 --- a/apps/replaygain.c +++ b/apps/replaygain.c @@ -20,13 +20,14 @@ ****************************************************************************/ #include -#include #include #include #include #include -#include -#include +#include +#include "strlcpy.h" +#include "strcasecmp.h" +#include "system.h" #include "metadata.h" #include "debug.h" #include "replaygain.h" @@ -244,7 +245,7 @@ long parse_replaygain_int(bool album, long gain, long peak, if (buffer != NULL) { - len = snprintf(buffer, length, "%d.%02d dB", gain / 512, + len = snprintf(buffer, length, "%ld.%02d dB", gain / 512, ((abs(gain) & 0x01ff) * 100 + 256) / 512); len++; } -- cgit v1.2.3