From 7f35d5d79daf4397cb0a1927f9a8b3e487ff3a6f Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Tue, 21 Jan 2020 16:12:19 +0000 Subject: [PATCH] undef TranslateName for c file_system as well This PR applies PR 35947 to C verson of the file_system, to undef TranslateName. TranslateName under Windows are defined as `TranslateNameA` or `TranslateNameW` and it might be enabled depending on Visual Studio's configurations. It would be safe to undef TranslateName when possible. Signed-off-by: Yong Tang --- tensorflow/c/experimental/filesystem/modular_filesystem_test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/tensorflow/c/experimental/filesystem/modular_filesystem_test.cc b/tensorflow/c/experimental/filesystem/modular_filesystem_test.cc index 159726b84bf18b..b3cb5e608cb037 100644 --- a/tensorflow/c/experimental/filesystem/modular_filesystem_test.cc +++ b/tensorflow/c/experimental/filesystem/modular_filesystem_test.cc @@ -36,6 +36,7 @@ limitations under the License. #undef LoadLibrary #undef CopyFile #undef DeleteFile +#undef TranslateName #endif // defined(PLATFORM_WINDOWS) // The tests defined here test the compliance of filesystems with the API