From 8617e7c22c1215e26aff2a594bb1165b8972b9b1 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Fri, 8 Jan 2016 17:46:25 -0500 Subject: [PATCH] Fix compile error in cef_thread_checker.h due to DCHECK_IS_ON not being defined in some cases. --- include/base/cef_logging.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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"