disable ARRAY_SIZE fixed length check for Clang

This commit is contained in:
Campbell Barton 2015-04-29 01:36:14 +10:00
parent 7615498e6d
commit 7851534541
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ extern "C" {
} (void)0
/* assuming a static array */
#if defined(__GNUC__) && !defined(__cplusplus)
#if defined(__GNUC__) && !defined(__cplusplus) && !defined(__clang__)
# define ARRAY_SIZE(arr) \
((sizeof(struct {int isnt_array : ((const void *)&(arr) == &(arr)[0]);}) * 0) + \
(sizeof(arr) / sizeof(*(arr))))