[FFmpeg-devel] [PATCH] atoll() replacement for WinCE

Martin Storsjö martin
Wed Jul 15 11:39:49 CEST 2009


On Wed, 15 Jul 2009, M?ns Rullg?rd wrote:

> > Ismail D?nmez <ismail at namtrac.org> writes:
> 
> > On Wed, Jul 15, 2009 at 11:48 AM, Martin Storsj?<martin at martin.st> 
> > wrote:
> >> On Wed, 15 Jul 2009, Ismail D?nmez wrote:
> >>
> >>> > 2009/7/15 M?ns Rullg?rd <mans at mansr.com>:
> >>> > Ismail D?nmez <ismail at namtrac.org> writes:
> >>> >> WinCE lacks an atoll() implementation. Attached patch adds a very
> >>> >> basic, no error checking [0] implementation. Is it ok or should I 
> >>> >> try
> >>> >> to add a full implementation?
> >>> >
> >>> > Does it have strtoll()?
> >>>
> >>> Apperently not.
> >>
> >> Umm, it seems to work just fine for me. It's not part of the actual 
> >> WinCE platform, but mingw32ce contains a wrapper in libmingwex.a 
> >> (that's linked in automatically).
> >
> > Anyhow the main problem is -std=c99 implies __STRICT_ANSI__ which in
> > turn shadows atoll() and friends' definition.
> 
> And that's a bug.  atoll() is standard C99.

Ok, so the compiler header should be fixed. On normal mingw for desktop 
windows, atoll is a wrapper function just calling _atoi64, regardless of 
__STRICT_ANSI__.

// Martin



More information about the ffmpeg-devel mailing list