문제

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