diff --git a/ReactCommon/yoga/yoga/CompactValue.h b/ReactCommon/yoga/yoga/CompactValue.h index 6568c48ad2c..e489fbb614d 100644 --- a/ReactCommon/yoga/yoga/CompactValue.h +++ b/ReactCommon/yoga/yoga/CompactValue.h @@ -9,6 +9,14 @@ #ifdef __cplusplus +#if defined(__has_include) && __has_include() +// needed to be able to evaluate defined(__cpp_lib_bit_cast) +#include +#else +// needed to be able to evaluate defined(__cpp_lib_bit_cast) +#include +#endif + #ifdef __cpp_lib_bit_cast #include #else