To make mcc16 run correctly on mac.
authorSanjiv Gupta <sanjiv.gupta@microchip.com>
Thu, 27 Aug 2009 11:54:38 +0000 (11:54 +0000)
committerSanjiv Gupta <sanjiv.gupta@microchip.com>
Thu, 27 Aug 2009 11:54:38 +0000 (11:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80239 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 40837cba8cbb7bc5e30e5e48a897c2063de42f0f..a6d2ff6b1ae4a5c45719ae17953cd9a5e4073659 100644 (file)
@@ -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 "\\";