Re: multilib fun - devel packages

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

 



On Fri, Dec 09, 2005 at 08:12:30AM +0000, Joe Orton wrote:
> > 2) Wordsize specific #defines and similar in a header file.
> 
> Not possible without massive deviation from upstream.

Unless you do it cleanly and push the changes upstream?
glibc does this in the upstream headers, so why couldn't other
packages do that as well?

If the only differences are wordsize related, you can e.g.
portably #include <limits.h> and do:
#if LONG_MAX == 2147483647L
32-bit stuff
#else if LONG_MAX == 9223372036854775807L
64-bit stuff
#else
#error Unsupported long size
#endif
etc.

	Jakub


[Index of Archives]     [Fedora Users]     [Fedora Development]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux