Date: Wed, 9 Oct 2019 18:46:56 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r353362 - head/sys/sys Message-ID: <201910091846.x99IkuSm057640@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Wed Oct 9 18:46:56 2019 New Revision: 353362 URL: https://svnweb.freebsd.org/changeset/base/353362 Log: Fix the compilation workaround so it's not entirely dead code - clang also defines __GNUC__. Submitted by: cem Sponsored by: Klara Inc, Netflix Modified: head/sys/sys/qmath.h Modified: head/sys/sys/qmath.h ============================================================================== --- head/sys/sys/qmath.h Wed Oct 9 17:36:57 2019 (r353361) +++ head/sys/sys/qmath.h Wed Oct 9 18:46:56 2019 (r353362) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910091846.x99IkuSm057640>