summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-08-27 12:02:34 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-08-27 12:02:34 +0000
commit6205048db1c5083e447130fbc500810d81dcf848 (patch)
treef12c25b9a43d401db5ef1d4914ee54ffdcd597ae /tools
parent1eb6baa3b28aeb44e43da7b98e07b55ca02e5603 (diff)
downloadllvm-6205048db1c5083e447130fbc500810d81dcf848.tar.gz
llvm-6205048db1c5083e447130fbc500810d81dcf848.tar.bz2
llvm-6205048db1c5083e447130fbc500810d81dcf848.tar.xz
Inverse logic to increase portability.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80240 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp b/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
index a6d2ff6b1a..f8492ed45d 100644
--- a/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
+++ b/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
@@ -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
}