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

Måns Rullgård mans
Wed Jul 15 15:58:52 CEST 2009

Martin Storsj? <martin at martin.st> writes:

> On Wed, 15 Jul 2009, Reimar D?ffinger wrote:
>> On Wed, Jul 15, 2009 at 01:38:06PM +0300, Martin Storsj? wrote:
>> > 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.
>> Please check why FFmpeg detects it, FFmpeg is supposed to link a program
>> using the function, so the check should fail if it is not useable, regardless
>> of whether the header defines it or not.
> Hmm, check_func_headers doesn't seem to work properly on the compilers 
> I've got; I can reproduce this both on gcc 4.3 on linux and gcc 4.0 on OS 
> X, and additionally with the mingw32ce compiler (gcc 4.1).
> To reproduce the case, try compiling this snippet:
> void functionThatDoesNotExist();
> int main(int argc, char **argv){
>     (void) functionThatDoesNotExist;
>     return 0;
> }
> Since the value of the function pointer isn't used, gcc seems to optimize 
> away the whole reference to the function, so this compiles and links just 
> fine.

What if you change it to "return (int)functionThatDoesNotExist;" ?

M?ns Rullg?rd
mans at mansr.com

More information about the ffmpeg-devel mailing list