Fix the compilation workaround so it's not entirely dead code - clang

also defines __GNUC__.

Submitted by:	cem
Sponsored by:	Klara Inc, Netflix
This commit is contained in:
Edward Tomasz Napierala 2019-10-09 18:46:56 +00:00
parent 86b90d9179
commit 2c7cf9a3c2

View File

@ -58,7 +58,7 @@ typedef uint64_t u64q_t;
typedef s64q_t smaxq_t;
typedef u64q_t umaxq_t;
#if defined(__GNUC__)
#if defined(__GNUC__) && !defined(__clang__)
/* Ancient GCC hack to de-const, remove when GCC4 is removed. */
#define Q_BT(q) __typeof(1 * q)
#else