1 #include <stdio.h> 2 3 int main(void) { 4 if (sizeof(void*) == 4) { 5 printf("Running Win32\n"); 6 } else if (sizeof(void*) == 8) { 7 printf("Running x64\n"); 8 } else { 9 printf("Unexpected platform\n"); 10 } 11 return 0; 12 } 13