This question already has answers here: How do I check OS with a preprocessor directive? (16 answers) Closed 7 years ago. I want to run some c++ code on...
I need my code to do different things based on the operating system on which it gets compiled. I’m looking for something like this: #ifdef OSisWindows // do Windows-specific...