Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] How to find out, whether we are running on Cygwin

Hi folks,
 
I am trying to create a demo implementation for the "external problem markers" bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=151005
 
I can nicely get the path for an external problem from gcc in a format like "/usr/include/myheader.h" - even when running on cygwin. So this path is perfectly ok on Linux but on windows I need to translate first. Question: How can I detect "somewhere in the CDT" whether I am on cygwin and need to translate or on Linux and can use the path directly?
 
I could of course, test whether the file exists and translate if it does not. But perhaps there is something smarter?
 
Thanks,
 
 
Norbert
 
 

Back to the top