質問

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