diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-08-27 12:02:34 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-08-27 12:02:34 +0000 |
commit | 53fd9f392df572150d808153ba42c29a8efdcea1 (patch) | |
tree | deda488110fe90bb7ef95fd31f0383f11da80f9d /llvm/tools/llvmc | |
parent | 99c20d145915cb6da76b8e08cf32ef8121f355b8 (diff) | |
download | bcm5719-llvm-53fd9f392df572150d808153ba42c29a8efdcea1.tar.gz bcm5719-llvm-53fd9f392df572150d808153ba42c29a8efdcea1.zip |
Inverse logic to increase portability.
llvm-svn: 80240
Diffstat (limited to 'llvm/tools/llvmc')
-rw-r--r-- | llvm/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp b/llvm/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp index a6d2ff6b1ae..f8492ed45d8 100644 --- a/llvm/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp +++ b/llvm/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp @@ -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 } |