diff --git a/tensorflow/core/platform/path.cc b/tensorflow/core/platform/path.cc index 1e88328aace..00e3f0eca28 100644 --- a/tensorflow/core/platform/path.cc +++ b/tensorflow/core/platform/path.cc @@ -38,7 +38,11 @@ namespace io { namespace internal { namespace { +#if defined(PLATFORM_WINDOWS) +const char kPathSep[] = "\\"; +#else const char kPathSep[] = "/"; +#endif // PLATFORM_WINDOWS bool FixBazelEnvPath(const char* path, string* out) { if (path == nullptr) return false;