Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Standard #ifdef for Cygwin

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.

like image 470
OregonTrail Avatar asked Mar 03 '14 05:03

OregonTrail


People also ask

What is SCB?

Standard Chartered Bank, India.

Is Standard Chartered Hotline 24 hours?

For more information on Standard Chartered Mobile Banking, click here. Alternatively, please call our 24-hour Client Contact Centre immediately at +65 6747 7000.


1 Answers

Seems like #ifdef __CYGWIN__ works.

Found it on this list

like image 157
OregonTrail Avatar answered Oct 18 '22 19:10

OregonTrail