I'd like to cross-compile specific 32-bit and 64-bit code using an #if directive based on gcc switches.
Are there any macros set by GCC I could use instead of setting a macro using the -D switch?
Can I somehow pick up the switches used in the gcc command options to test them at the preprocessor stage?
So far I found out that -m64 defines on my 64-bit machine
__x86_64__
whereas -m32 undefines
__i386__ __i486__ __i586__ __i686__