Bug 1024713 - Fix a compilation error in cairo with clang-cl; r=jrmuizel

This commit is contained in:
Ehsan Akhgari 2014-06-13 11:34:07 -04:00
parent ef93ef1973
commit 521c803f91

View File

@ -197,7 +197,11 @@
#define unlikely(expr) (expr)
#endif
#ifndef __GNUC__
/*
* clang-cl supports __attribute__, but MSVC doesn't, so we need to make sure
* we do this if not GNUC but also if not clang either.
*/
#if !defined(__GNUC__) && !defined(__clang__)
#undef __attribute__
#define __attribute__(x)
#endif