clang in MSVC mode doesn't like when we redefine __attribute__ (#283)
authorSteve Lhomme <slhomme@matroska.org>
Mon, 11 Jul 2016 19:57:26 +0000 (21:57 +0200)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 11 Jul 2016 19:57:26 +0000 (12:57 -0700)
src/hb-private.hh

index d58a695..c45be6f 100644 (file)
@@ -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