Pregunta

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.

No hay solución correcta

Otros consejos

Seems like #ifdef __CYGWIN__ works.

Found it on this list

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top