summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 52af3e5..164ce5e 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -283,10 +283,9 @@ void cmLocalUnixMakefileGenerator::OutputMakefile(const char* file,
-std::string
-cmLocalUnixMakefileGenerator::GetOutputExtension(const char* s)
-{
#if defined(_WIN32) && ! defined(__CYGWIN__)
+std::string cmLocalUnixMakefileGenerator::GetOutputExtension(const char* s)
+{
std::string sourceExtension = s;
if(sourceExtension == "def")
{
@@ -301,10 +300,13 @@ cmLocalUnixMakefileGenerator::GetOutputExtension(const char* s)
return ".res";
}
return ".obj";
+}
#else
+std::string cmLocalUnixMakefileGenerator::GetOutputExtension(const char*)
+{
return ".o";
-#endif
}
+#endif