diff --git a/src/hb-private.hh b/src/hb-private.hh index d58a695c4..c45be6f2f 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -83,7 +83,7 @@ extern "C" void hb_free_impl(void *ptr); #define unlikely(expr) (expr) #endif -#ifndef __GNUC__ +#if !defined(__GNUC__) && !defined(__clang__) #undef __attribute__ #define __attribute__(x) #endif