I wasn't clear enough.
I need this to happen at compile time. Currently, the build system generates -D entries based on things like uname. I would like to determine OS/platform (endian stuff, really, but I can get that from endian.h on unix platforms) based on built-in #defines produced by the compiler or present in system .h files. I don't want to have to detect the OS in the build system.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."