echo | gcc -dM -E -
cpp to out
#define for every variable it has.
gcc to run
P.S. I dead tired to dig documentation every time I need to find how platform is identified by GCC. So putting that stuff here in hope that it would be easier locatable.