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.

没有正确的解决方案

其他提示

Seems like #ifdef __CYGWIN__ works.

Found it on this list

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top