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

Martin Storsjö martin
Wed Jul 15 12:38:06 CEST 2009

Note: Attached patch is not for review.

On Wed, 15 Jul 2009, Ismail D?nmez wrote:

> > On Wed, Jul 15, 2009 at 12:39 PM, Martin Storsj?<martin at martin.st> 
> wrote:
> >
> > 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, will you report a bug against cegcc or shall I?

Feel free to take care of that; I don't think I have time to follow up 
that at the moment.

For reference, I attached my current patch to the mingw32ce headers that 
I'm using. The modifications are the following:

conio.h: Make including this a failure, so the ffmpeg configure doesn't 
         choose to use it.
errno.h: Including this shouldn't be a failure; ffmpeg needs the error 
stdio.h: Make perror() a no-op.
stdlib.h: Make getenv() a no-op, make atoll usable.
string.h: Make strerror() a no-op; this also fixes the remaining places 
          where errno is used directly since the parameter is discarded by 
          the macro.
winbase.h: Don't declare GetProcessTimes, so the ffmpeg configure doesn't
           choose to use it, since it isn't available in the import libs.

Most of these are just ugly hacks, and shouldn't be proposed as fixes as 
such. The GetProcessTimes and conio.h fixes may be good as such. (For the 
GetProcessTimes case, someone perhaps should see what other functions are 
missing and remove them, too.)

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mingw32ce-headers.patch
Type: text/x-diff
Size: 3704 bytes
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090715/4d91c99a/attachment.patch>

More information about the ffmpeg-devel mailing list