aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgamma-facade.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgamma-facade.hh')
-rw-r--r--src/libgamma-facade.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libgamma-facade.hh b/src/libgamma-facade.hh
index c52d7d8..c08521a 100644
--- a/src/libgamma-facade.hh
+++ b/src/libgamma-facade.hh
@@ -26,6 +26,12 @@
#include "libgamma-method.hh"
+#ifndef __GCC__
+# define __attribute__(X) /* emtpy */
+#endif
+
+
+
namespace libgamma
{
/**
@@ -49,7 +55,7 @@ namespace libgamma
* @param method The adjustment method.
* @return Whether the adjustment method is available.
*/
- int is_method_available(int method);
+ int is_method_available(int method) __attribute__((const));
/**
* Return the capabilities of an adjustment method.