diff --git a/llvm/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp b/llvm/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp index 21a25b3f734b..151675f82aa5 100644 --- a/llvm/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp +++ b/llvm/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 {