Commit 3f3e178c authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

src/test_seeking : Remove un-needed local__strtoull.

Patch-from: lvqcl <lvqcl.mail@gmail.com>
parent 4bc1220b
......@@ -389,23 +389,6 @@ static FLAC__bool seek_barrage(FLAC__bool is_ogg, const char *filename, FLAC__of
return true;
}
#ifdef _MSC_VER
/* There's no strtoull() in MSVC6 so we just write a specialized one */
static FLAC__uint64 local__strtoull(const char *src)
{
FLAC__uint64 ret = 0;
int c;
FLAC__ASSERT(0 != src);
while(0 != (c = *src++)) {
c -= '0';
if(c >= 0 && c <= 9)
ret = (ret * 10) + c;
else
break;
}
return ret;
}
#endif
int main(int argc, char *argv[])
{
......@@ -428,11 +411,7 @@ int main(int argc, char *argv[])
if (argc > 2)
count = strtoul(argv[2], 0, 10);
if (argc > 3)
#ifdef _MSC_VER
samples = local__strtoull(argv[3]);
#else
samples = strtoull(argv[3], 0, 10);
#endif
if (argc > 4)
rawfilename = argv[4];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment