Thread (1 message) 1 message, 1 author, 2001-04-12

Re: compiler or kernel source defines

From: Anton Blanchard <hidden>
Date: 2001-04-12 23:23:48


Hi,
#ifdef defined(__powerpc__) and !defined(__PPC64__)

32 bit PPC kernel code

#elif defined(__powerpc__) and defined(__PPC64__)

64 bit PPC kernel code

#endif

  Seems like the only risk here is that one always assumes to be using gcc and
that's perfectly valid to me.
Thats what we do in the sparc port. We did have a problem where some
areas used sparc and not __sparc__ and the gcc guys decided to stop
gcc from definining it. But apart from that its been fine.

Anton

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help