[FFmpeg-devel] [PATCH] atoll() replacement for WinCE
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>
> > 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
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.)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3704 bytes
More information about the ffmpeg-devel