Home | History | Annotate | Download | only in patch
      1 # In Android, prefer Android's libbase definitions for LIKELY/UNLIKELY macros.
      2 
      3 --- a/base/compiler_specific.h
      4 +++ b/base/compiler_specific.h
      5 @@ -7,6 +7,11 @@
      6  
      7  #include "build/build_config.h"
      8  
      9 +#if defined(ANDROID)
     10 +// Prefer Android's libbase definitions to our own.
     11 +#include <android-base/macros.h>
     12 +#endif  // defined(ANDROID)
     13 +
     14  #if defined(COMPILER_MSVC)
     15  
     16  // For _Printf_format_string_.
     17