1 2 3 4 5 6 7 8 9 10 11 12
#include <stdio.h> int foo() { #ifdef __i386__ printf("Hello from i386\n"); #endif #ifdef __x86_64__ printf("Hello from x86_64\n"); #endif return 0; }