svn commit: r353362 - head/sys/sys
Edward Tomasz Napierala
trasz at FreeBSD.org
Wed Oct 9 18:46:57 UTC 2019
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
More information about the svn-src-all
mailing list