On Fri, Jun 28, 2013 at 02:58:12PM +0200, Vít Ondruch wrote:
> Dne 25.6.2013 15:41, Vít Ondruch napsal(a):
> >Is there some common practice, where to place architecture
> >specific header files? From output of the following command, I
> >can't see any such place.

gcc doesn't have such location, you'd want a different path
for gcc -m64, different for gcc -m32, different for gcc -mx32, ....
The standard way is to add a wrapper header and include your arch specific
header based on compiler predefined macros.  Say something like:
# ifdef __i386__
#  include <asm/posix_types_32.h>
# elif defined(__ILP32__)
#  include <asm/posix_types_x32.h>
# else
#  include <asm/posix_types_64.h>
# endif
or, if possible, avoid arch specific headers altogether.

        Jakub
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to