mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-27 02:31:09 +00:00
Inverse logic to increase portability.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80240 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1eb6baa3b2
commit
6205048db1
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user