To make mcc16 run correctly on mac.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80239 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sanjiv Gupta 2009-08-27 11:54:38 +00:00
parent 4fac74950a
commit 1eb6baa3b2

View File

@ -13,7 +13,7 @@ namespace llvmc {
// FIXME: This currently work on linux and windows only. It does not // FIXME: This currently work on linux and windows only. It does not
// work on other unices. // work on other unices.
static std::string GetDirSeparator() { static std::string GetDirSeparator() {
#ifdef __linux__ #if __linux__ || __APPLE__
return "/"; return "/";
#else #else
return "\\"; return "\\";