diff --git a/engine/src/flutter/fml/unique_fd.cc b/engine/src/flutter/fml/unique_fd.cc index 45fd761308..09226c6014 100644 --- a/engine/src/flutter/fml/unique_fd.cc +++ b/engine/src/flutter/fml/unique_fd.cc @@ -11,23 +11,23 @@ namespace internal { #if OS_WIN -namespace win { +namespace os_win { void UniqueFDTraits::Free(HANDLE fd) { CloseHandle(fd); } -} // namespace win +} // namespace os_win #else // OS_WIN -namespace unix { +namespace os_unix { void UniqueFDTraits::Free(int fd) { close(fd); } -} // namespace unix +} // namespace os_unix #endif // OS_WIN diff --git a/engine/src/flutter/fml/unique_fd.h b/engine/src/flutter/fml/unique_fd.h index ac5b983bc8..05dee99018 100644 --- a/engine/src/flutter/fml/unique_fd.h +++ b/engine/src/flutter/fml/unique_fd.h @@ -23,7 +23,7 @@ namespace internal { #if OS_WIN -namespace win { +namespace os_win { struct UniqueFDTraits { static HANDLE InvalidValue() { return INVALID_HANDLE_VALUE; } @@ -31,11 +31,11 @@ struct UniqueFDTraits { static void Free(HANDLE fd); }; -} // namespace win +} // namespace os_win #else // OS_WIN -namespace unix { +namespace os_unix { struct UniqueFDTraits { static int InvalidValue() { return -1; } @@ -43,7 +43,7 @@ struct UniqueFDTraits { static void Free(int fd); }; -} // namespace unix +} // namespace os_unix #endif // OS_WIN @@ -51,11 +51,11 @@ struct UniqueFDTraits { #if OS_WIN -using UniqueFD = UniqueObject; +using UniqueFD = UniqueObject; #else // OS_WIN -using UniqueFD = UniqueObject; +using UniqueFD = UniqueObject; #endif // OS_WIN