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

Martin Storsjö martin
Wed Jul 15 15:51:55 CEST 2009


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.

// Martin



More information about the ffmpeg-devel mailing list