If I want to know if I'm compiling on Cygwin, what is the standard macro to check for?
I've seen #ifdef _WIN32
, but this doesn't seem future-proof or Cygwin specific.
Standard Chartered Bank, India.
For more information on Standard Chartered Mobile Banking, click here. Alternatively, please call our 24-hour Client Contact Centre immediately at +65 6747 7000.
Seems like #ifdef __CYGWIN__
works.
Found it on this list
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With