summaryrefslogtreecommitdiff
path: root/tools/llvmc/example
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-08-27 11:54:38 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-08-27 11:54:38 +0000
commit1eb6baa3b28aeb44e43da7b98e07b55ca02e5603 (patch)
tree01a565e3716c6d007e44ae38241470e7dc42486f /tools/llvmc/example
parent4fac74950a1ff08b995b366bfb84369c1507faef (diff)
downloadllvm-1eb6baa3b28aeb44e43da7b98e07b55ca02e5603.tar.gz
llvm-1eb6baa3b28aeb44e43da7b98e07b55ca02e5603.tar.bz2
llvm-1eb6baa3b28aeb44e43da7b98e07b55ca02e5603.tar.xz
To make mcc16 run correctly on mac.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80239 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc/example')
-rw-r--r--tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp b/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
index 40837cba8c..a6d2ff6b1a 100644
--- a/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
+++ b/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
@@ -13,7 +13,7 @@ namespace llvmc {
// FIXME: This currently work on linux and windows only. It does not
// work on other unices.
static std::string GetDirSeparator() {
-#ifdef __linux__
+#if __linux__ || __APPLE__
return "/";
#else
return "\\";