From: Sanjiv Gupta Date: Thu, 27 Aug 2009 11:54:38 +0000 (+0000) Subject: To make mcc16 run correctly on mac. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=1eb6baa3b28aeb44e43da7b98e07b55ca02e5603;p=oota-llvm.git To make mcc16 run correctly on mac. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80239 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp b/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp index 40837cba8cb..a6d2ff6b1ae 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 "\\";