projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Return dir separator as per platform.
[oota-llvm.git]
/
tools
/
llvmc
/
example
/
mcc16
/
plugins
/
PIC16Base
/
PluginMain.cpp
diff --git
a/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
b/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
index 21a25b3f734b289fe1e7453d748150479cc91cfb..151675f82aa583d41fe2e55bcc148ebbc9244c70 100644
(file)
--- a/
tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
+++ b/
tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
@@
-11,7
+11,11
@@
namespace llvmc {
// Returns the platform specific directory separator via #ifdefs.
static std::string GetDirSeparator(void) {
+#ifdef __linux__
return "/";
+#else
+ return "\\";
+#endif
}
namespace hooks {