Patch for Path.inc on mingw

Hi,

I would like this patch for Path.inc to be accepted.

I cannot tell, why the win32 version of isValid() method fails when issuing a correct path on the mingw platform. This is especially annoying when configuring the cfrontend, because we get this misindicating error: 'checking for sin in -lm... configure: error: Link tests are not allowed after
GCC_NO_EXECUTABLES.' And it has nothing to do with cross compilation. See this article for further explanation: [Bug libstdc++/16371] [3.4/4.0 Regression] libstdc++ fails for crosses (6th paragraph).

Henrik.

Path.zip (1.08 KB)

Can you give an example of a path that isValid() incorrectly claims is invalid? I'd rather not put in Unix code into Win32 code if I can avoid it. It's also possible this is a real bug; i.e., it would incorrectly claim a valid Windows path is invalid. You could insert a printf that prints out invalid paths.

Henrik Bach wrote: