mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fabric: Explicitly include algorithm in Rect.h (#29884)
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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
cb719a16cc
commit
0693d08e2f
@@ -7,6 +7,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <algorithm>
|
||||
#include <tuple>
|
||||
|
||||
#include <folly/Hash.h>
|
||||
|
||||
Reference in New Issue
Block a user