From 8c9cd8a2fbf9ef58a39215be63c682dc5073baa8 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Wed, 13 Sep 2023 09:02:03 -0700 Subject: [PATCH] fixes the non-unicode path of file_helpers on windows Macros can't start with ##, this fixes it. PiperOrigin-RevId: 565066376 --- mediapipe/framework/deps/file_helpers.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mediapipe/framework/deps/file_helpers.cc b/mediapipe/framework/deps/file_helpers.cc index b5c2bae8..84faefc0 100644 --- a/mediapipe/framework/deps/file_helpers.cc +++ b/mediapipe/framework/deps/file_helpers.cc @@ -106,8 +106,7 @@ std::string NativeToUtf8(const PathString& string) { using PathString = std::string; PathString Utf8ToNative(const std::string& string) { return string; } std::string NativeToUtf8(const PathString& string) { return string; } -#define FILE_PATH_LITERAL_INTERNAL(x) ##x -#define FILE_PATH_LITERAL(x) FILE_PATH_LITERAL_INTERNAL(x) +#define FILE_PATH_LITERAL(x) x #endif class DirectoryListing {