diff options
Diffstat (limited to 'tensorflow/core/util/memmapped_file_system.cc')
-rw-r--r-- | tensorflow/core/util/memmapped_file_system.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tensorflow/core/util/memmapped_file_system.cc b/tensorflow/core/util/memmapped_file_system.cc index d67f948f1d..e077e94cf8 100644 --- a/tensorflow/core/util/memmapped_file_system.cc +++ b/tensorflow/core/util/memmapped_file_system.cc @@ -177,8 +177,13 @@ const void* MemmappedFileSystem::GetMemoryWithOffset(uint64 offset) const { return reinterpret_cast<const uint8*>(mapped_memory_->data()) + offset; } +#if defined(COMPILER_MSVC) +constexpr char* MemmappedFileSystem::kMemmappedPackagePrefix; +constexpr char* MemmappedFileSystem::kMemmappedPackageDefaultGraphDef; +#else constexpr char MemmappedFileSystem::kMemmappedPackagePrefix[]; constexpr char MemmappedFileSystem::kMemmappedPackageDefaultGraphDef[]; +#endif Status MemmappedFileSystem::InitializeFromFile(Env* env, const string& filename) { |