/* * Author: Kristian Hermansen * For demonstration purposes of cross-compilation... */ /* general includes */ #include /* platform-specific includes */ #ifdef _WIN32 #include #else #include #endif int main() { int wait = 5; printf("hello!\n"); #ifdef _WIN32 Sleep(wait*1000); #else sleep(wait); #endif printf("goodbye!\n"); return 0; }