Two small fixes for s/390.

Andreas Jaeger aj@suse.de
Thu Dec 20 03:54:00 GMT 2001


"Martin Schwidefsky" <schwidefsky@de.ibm.com> writes:

>> > Ok, I can do that. I'll clean up sysdeps/s390/bits/string.h as well
>> > because I use the same #ifdef there.
>>
>> Is that really needed?  For bi-arch support, we should leave
>> bits/string.h as it is so that you can compile 32-bit and 64-bit apps
>> with that header...
>
> You have a point here. If we want to do bi-arch support sometime, we
> need to have a way to distinguish between 31/32-bit and 64-bit in the
> header files. __s390x__ versus __s390__ is one way to do it, is there
> a better one ?

Sparc uses:
#if __WORDSIZE == 64

#endif

I'm not sure what's better but it's an alternative ;-)

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Libc-hacker mailing list