testlib on cygwin + g++

Revision en1, by rng_58, 2017-11-11 11:09:38

Does anyone use testlib on cygwin + g++?

It gives a compilation error at the 434th line:

_setmode(_fileno(file), O_BINARY); ``

I know two ways to fix this issue:

  • Comment out the 434th line. However, it disables this line and I'm not sure whether this is a good way.

  • Add <io.h> to testlib. However, it works only on Windows.

How to fix the compilation error in a better way?

Tags testlib

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English rng_58 2017-11-11 11:09:38 425 Initial revision (published)