diff --git a/rangecheck.h b/rangecheck.h index e7afa3a..59c4744 100644 --- a/rangecheck.h +++ b/rangecheck.h @@ -6,7 +6,7 @@ /* return 0 for range error / overflow, 1 for ok */ -#if defined(__GNUC__) && defined(__OPTIMIZE__) +#if defined(__GNUC__) && defined(__OPTIMIZE__) && !defined(__clang__) #define __static extern #else #define __static static