Return dir separator as per platform.
[oota-llvm.git] / tools / llvmc / example / mcc16 / plugins / PIC16Base / PluginMain.cpp
index 21a25b3f734b289fe1e7453d748150479cc91cfb..151675f82aa583d41fe2e55bcc148ebbc9244c70 100644 (file)
@@ -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 {