mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
0693d08e2f
Summary: This pull request adds an include statement including the header `<algorithm>` to `react/renderer/graphics/Rect.h`. It is needed for building with MSVC because of the use of the `std::max` function. It seems that this header is included as a side effect of some other header that's being used when building with Clang, and for some reason it is not included when being built with MSVC. ## Changelog Changelog: [Internal][Added] - Fabric: Explicitly include algorithm in Rect.h Pull Request resolved: https://github.com/facebook/react-native/pull/29884 Test Plan: Files that include this header now successfully compile on MSVC. Reviewed By: sammy-SC Differential Revision: D23591910 Pulled By: shergin fbshipit-source-id: d8367bbdd94bc66c05d8fa308ed46c7aca24a68a