Re: Check for runtime binary compatibility



> I am considering adding something like the below to GTK+. Should I put
> it inside #ifdef G_OS_WIN32, or is it good to check this on other
> platforms, too? (Do all the C (and C++) compilers for the same Unix
> platforms always implement the exact same struct field alignment and
> size allocation rules?) (32- vs 64-bit code issues are not relevant
> here, that is catched in the link phase, isn't it?)

Under unix, all compilers following the ABI won't have this problem.
The vendor C compiler and GCC should always follow the ABI.
Of course Win32 platforms are a different story ;-)

Arno





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]