In Normal c program below code works fine. If i compile this in Linux machine then it will print linux and if i compile it in windows then it will print windows.
How can i get same thing in C code going to compile in CCS on windows and CCS on Linux.
#ifdef linux printf("its linux"); #else printf("its windows"); #endif