On Wed, 7 Jul 2004, Mark Taylor wrote:
> > Also, what does #cpu(i386) mean? #cpu isn't a directive. I think this
> > is just a hopelessly garbled line. What's it supposed to mean?
>
> You're right, it's nonsense, thanks for putting a picosecond's worth
> of thought into it which is more than I did. I've now replaced it
> by
>
> #if defined(__GNUC__) && defined(__i386__)
>
> which ought to resolve to true under GNU/Linux/i386 and false otherwise;
> this appears to be the effect that Peter had in mind according to the
> comments in that file.
Just to clear this up, #cpu is a valid GCC-ism, so the code should really
be:
#ifdef __GNUC__
#if #cpu(i386)
-----
#endif
#endif
so that the #cpu assertion isn't seen by anyone but GCC. Mark's solution
is just as good (who knows what I thought on that rainy day in 2001)...
Peter.
|