mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-18 13:10:42 +01:00
Fix compile error in cef_thread_checker.h due to DCHECK_IS_ON not being defined in some cases.
This commit is contained in:
parent
c1efd5b5be
commit
d829e80f5e
@ -141,6 +141,14 @@
|
|||||||
// This can happen in cases where Chromium code is used directly by the
|
// This can happen in cases where Chromium code is used directly by the
|
||||||
// client application. When using Chromium code directly always include
|
// client application. When using Chromium code directly always include
|
||||||
// the Chromium header first to avoid type conflicts.
|
// 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)
|
#elif defined(BUILDING_CEF_SHARED)
|
||||||
// When building CEF include the Chromium header directly.
|
// When building CEF include the Chromium header directly.
|
||||||
#include "base/logging.h"
|
#include "base/logging.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user