aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/util/memmapped_file_system.h
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/util/memmapped_file_system.h')
-rw-r--r--tensorflow/core/util/memmapped_file_system.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/tensorflow/core/util/memmapped_file_system.h b/tensorflow/core/util/memmapped_file_system.h
index d64c4a765c..541587aeab 100644
--- a/tensorflow/core/util/memmapped_file_system.h
+++ b/tensorflow/core/util/memmapped_file_system.h
@@ -53,9 +53,19 @@ class MemmappedFileSystem : public FileSystem {
public:
// Memmapped regions use this prefix to distinguish from
// the filesystem.
- static constexpr char kMemmappedPackagePrefix[] = "memmapped_package://";
- // The default graphdef in the package.
+#if defined(COMPILER_MSVC)
+ static constexpr char* kMemmappedPackagePrefix =
+#else
+ static constexpr char kMemmappedPackagePrefix[] =
+#endif
+ "memmapped_package://";
+
+// The default graphdef in the package.
+#if defined(COMPILER_MSVC)
+ static constexpr char* kMemmappedPackageDefaultGraphDef =
+#else
static constexpr char kMemmappedPackageDefaultGraphDef[] =
+#endif
"memmapped_package://.";
MemmappedFileSystem();