mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
0c0aff295b
Summary: The root cause comes down to the fact that historically `-DFOO=0` and `-DFOO=1` patterns have been used when it comes to preprocessor definitions and various engineers use `#ifdef FOO` and `#if FOO` interchangeably. That results in an incorrect pattern because the real evaluation is following: - `FOO` not defined: `#if FOO` = `FALSE`, `#ifdef FOO` = `FALSE`. - `-DFOO=0`: `#if FOO` = `FALSE`, `#ifdef FOO` = `TRUE`. - `-DFOO=1`: `#if FOO` = `TRUE`, `#ifdef FOO` = `TRUE`. Reviewed By: aditya7fb Differential Revision: D14811733 fbshipit-source-id: a7fedc56ab0ce8eedcb48bda783739a4c1eecf81