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 <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang 2020-01-21 16:12:19 +00:00
parent 055d68c055
commit 7f35d5d79d

View File

@ -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