diff --git a/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp b/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp index a6d2ff6b1ae..f8492ed45d8 100644 --- a/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp +++ b/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 }