clang in MSVC mode doesn't like when we redefine __attribute__ (#283)

This commit is contained in:
Steve Lhomme 2016-07-11 21:57:26 +02:00 committed by Behdad Esfahbod
parent 2f522fd485
commit 0b8f3ab022
1 changed files with 1 additions and 1 deletions

View 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