aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/libgamma-error.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-06-18 01:04:06 +0200
committerMattias Andrée <maandree@operamail.com>2014-06-18 01:04:06 +0200
commita8a58d1c98cfc5ca4918a577acc461bc0588c19b (patch)
tree53638932fc037e4f652c2ccf2a1f3750417e8717 /src/lib/libgamma-error.h
parentpython2 can be used (diff)
downloadlibgamma-a8a58d1c98cfc5ca4918a577acc461bc0588c19b.tar.gz
libgamma-a8a58d1c98cfc5ca4918a577acc461bc0588c19b.tar.bz2
libgamma-a8a58d1c98cfc5ca4918a577acc461bc0588c19b.tar.xz
remove __attribute__ if not using gcc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/lib/libgamma-error.h')
-rw-r--r--src/lib/libgamma-error.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/libgamma-error.h b/src/lib/libgamma-error.h
index 3549a3d..5d6e300 100644
--- a/src/lib/libgamma-error.h
+++ b/src/lib/libgamma-error.h
@@ -22,6 +22,11 @@
# error libgamma-error.h should not be included directly, include libgamma.h instead
#endif
+
+#ifndef __GNUC__
+# define __attribute__
+#endif
+
#include <sys/types.h>