Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91781

Forum Post: How to detect Host os is Linux or windows in c code of CCS?

$
0
0

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 


Viewing all articles
Browse latest Browse all 91781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>