Fix compile error in cef_thread_checker.h due to DCHECK_IS_ON not being defined in some cases.

This commit is contained in:
Marshall Greenblatt 2016-01-08 17:46:25 -05:00
parent c1efd5b5be
commit d829e80f5e
1 changed files with 8 additions and 0 deletions

View File

@ -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"