diff --git a/srtcore/common.h b/srtcore/common.h index bfc0c1d96..6a8912118 100644 --- a/srtcore/common.h +++ b/srtcore/common.h @@ -78,8 +78,13 @@ modified by #endif #ifdef _DEBUG +#if defined(SRT_ENABLE_THREADCHECK) +#include "threadcheck.h" +#define SRT_ASSERT(cond) ASSERT(cond) +#else #include #define SRT_ASSERT(cond) assert(cond) +#endif #else #define SRT_ASSERT(cond) #endif