From 4be2dd6ab98a66e5e2cb92b66ac93d3b49dc4219 Mon Sep 17 00:00:00 2001 From: Ozan Tezcan Date: Mon, 27 Sep 2021 09:51:33 +0300 Subject: [PATCH] Use __common__ attribute in redismodule.h for Clang C builds (#9541) --- src/redismodule.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redismodule.h b/src/redismodule.h index ec6b593fe..acfa72d0a 100644 --- a/src/redismodule.h +++ b/src/redismodule.h @@ -506,7 +506,7 @@ typedef long long mstime_t; #endif #ifndef REDISMODULE_ATTR_COMMON -# if defined(__GNUC__) && !defined(__clang__) +# if defined(__GNUC__) && !(defined(__clang__) && defined(__cplusplus)) # define REDISMODULE_ATTR_COMMON __attribute__((__common__)) # else # define REDISMODULE_ATTR_COMMON