[llvm-commits] [llvm] r80240 - /llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
Benjamin Kramer
benny.kra at googlemail.com
Thu Aug 27 05:02:34 PDT 2009
Author: d0k
Date: Thu Aug 27 07:02:34 2009
New Revision: 80240
URL: http://llvm.org/viewvc/llvm-project?rev=80240&view=rev
Log:
Inverse logic to increase portability.
Modified:
llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
Modified: llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp?rev=80240&r1=80239&r2=80240&view=diff
==============================================================================
--- llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp (original)
+++ llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp Thu Aug 27 07:02:34 2009
@@ -10,13 +10,11 @@
}
// 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
}
More information about the llvm-commits
mailing list