From 0693d08e2ff4d32073521223531f7a4e2e9a334b Mon Sep 17 00:00:00 2001 From: empyrical Date: Wed, 9 Sep 2020 13:02:38 -0700 Subject: [PATCH] Fabric: Explicitly include algorithm in Rect.h (#29884) Summary: This pull request adds an include statement including the header `` 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 --- ReactCommon/react/renderer/graphics/Rect.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ReactCommon/react/renderer/graphics/Rect.h b/ReactCommon/react/renderer/graphics/Rect.h index 20efdfddf9a..78b29c4a3b7 100644 --- a/ReactCommon/react/renderer/graphics/Rect.h +++ b/ReactCommon/react/renderer/graphics/Rect.h @@ -7,6 +7,7 @@ #pragma once +#include #include #include