Use __common__ attribute in redismodule.h for Clang C builds (#9541)

This commit is contained in:
Ozan Tezcan 2021-09-27 09:51:33 +03:00 committed by GitHub
parent 5a4ab7c7d2
commit 4be2dd6ab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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