[FFmpeg-devel] Update on lbos

Diego Biurrun diego
Mon Feb 4 16:32:06 CET 2008

On Mon, Feb 04, 2008 at 03:47:16PM +0100, Luca Abeni wrote:
> Diego Biurrun wrote:
> [...]
> > 
> > Also, what is this PASCAL thing in netdb.h all about?
> The problem is that mingw32's libraries provide getaddrinfo() and
> friends, but those functions can be linked and used only if their
> prototypes are defined as "PASCAL" (I suspect this means that those
> functions use the pascal calling convention and not the C one).
> And for some reason mingw32's headers do not do this...
> As a result, the functions are in the libraries but they cannot
> be linked.
> So, I added the prototypes with the "PASCAL" qualifier (this allows
> to use the "CONFIG_IPV6" code in mingw32), but this breaks the
> compilation for non-win32 systems. Hence, I added
> #ifndef __MINGW32__
> #define PASCAL
> #endif
> If there is some smarter way to address this problem, let me know
> and I'll modify the header.

Could you add a comment to that effect to the file?  What you just
described is in no way obvious.


More information about the ffmpeg-devel mailing list