diff --git a/include/base/cef_logging.h b/include/base/cef_logging.h index 3e9292f1e..914855ef5 100644 --- a/include/base/cef_logging.h +++ b/include/base/cef_logging.h @@ -141,6 +141,14 @@ // This can happen in cases where Chromium code is used directly by the // client application. When using Chromium code directly always include // the Chromium header first to avoid type conflicts. + +// Always define the DCHECK_IS_ON macro which is used from other CEF headers. +#if defined(NDEBUG) && !defined(DCHECK_ALWAYS_ON) +#define DCHECK_IS_ON() 0 +#else +#define DCHECK_IS_ON() 1 +#endif + #elif defined(BUILDING_CEF_SHARED) // When building CEF include the Chromium header directly. #include "base/logging.h"