On Thu, 2009-07-16 at 21:09 +0200, Johannes Berg wrote: > On Thu, 2009-07-16 at 15:04 -0400, Jon Smirl wrote: > > When cross compiling crda the Makefile asks the python system what the > > word size is. This gets the word size from the host. Is there a way to > > ask the word size using gcc? In my environment the Makefile is > > automatically using the correct gcc cross compiler. > > Can you just use gnutls instead? it has no such issue :) > > Otherwise you can probably parse it out of "gcc -dumpspecs", but that > format doesn't look too nice, especially with multilib gcc... C99 says this works, I think: echo -e '#include <limits.h>\n#if ULONG_MAX == 4294967295\n32\n#elif ULONG_MAX == 18446744073709551615U\n64\n#else\n0\n#endif' | gcc -E - | sed 's/^\(#.*\|\)$//;T;d' johannes
Attachment:
signature.asc
Description: This is a digitally signed message part