Inverse logic to increase portability.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 27 Aug 2009 12:02:34 +0000 (12:02 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 27 Aug 2009 12:02:34 +0000 (12:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80240 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp

index a6d2ff6b1ae4a5c45719ae17953cd9a5e4073659..f8492ed45d8e56546470a5ae00c48ce39b6652a1 100644 (file)
@@ -10,13 +10,11 @@ namespace llvmc {
 }
 
 // Returns the platform specific directory separator via #ifdefs.
-// FIXME: This currently work on linux and windows only. It does not 
-// work on other unices. 
 static std::string GetDirSeparator() {
-#if __linux__ || __APPLE__
-  return "/";
-#else
+#ifdef _WIN32
   return "\\";
+#else
+  return "/";
 #endif
 }