openjpeg-1.4, abi break

Kevin Kofler kevin.kofler at chello.at
Wed Jan 5 03:15:32 UTC 2011


Callum Lerwick wrote:
> Something thats been nagging at me, since we're talking about an ABI
> break anyway. There may still be a dumb-assed patch (by me) in the
> Fedora package that prevents fiddling with the "bool" type, the
> original code has some preprocessor logic that aliases "bool" to "int"
> or something, but then this may cause an ABI problem with binary
> portability between fedora and !fedora. IIRC the big codec-settings
> struct thats exposed by the ABI has a bool in it. I think the proper
> fix is to just not use bool for anything exposed by the ABI, use a
> char or an int, as bool is a C99/C++ thing and compilers may behave
> differently depending on if they're set to C99 or C++ mode, or even
> support C99 at all. (cough MSVC cough)
> 
> This is probably a good time to sort this all out. :P

Uh, no.

That patch is in libjpeg. Here we're talking about openjpeg, which is a 
different library.

        Kevin Kofler



More information about the devel mailing list