From b586f31bf01c9b1ce81b506f70287418012bcac8 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Tue, 6 May 2014 09:54:09 +0100 Subject: [PATCH] better gcc detect --- libvips/include/vips/vips.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libvips/include/vips/vips.h b/libvips/include/vips/vips.h index 71d5ae39..6c03ab1a 100644 --- a/libvips/include/vips/vips.h +++ b/libvips/include/vips/vips.h @@ -95,6 +95,14 @@ extern "C" { # endif #endif /*SWIG*/ +/* If this isn't gcc, turn off attributes. + */ +#ifndef __GNUC__ +# ifndef __attribute__ +# define __attribute__(x) /*NOTHING*/ +# endif +#endif /*__GNUC__*/ + #include #include