aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma-native.hh
diff options
context:
space:
mode:
Diffstat (limited to 'libgamma-native.hh')
-rw-r--r--libgamma-native.hh26
1 files changed, 26 insertions, 0 deletions
diff --git a/libgamma-native.hh b/libgamma-native.hh
new file mode 100644
index 0000000..f9ded22
--- /dev/null
+++ b/libgamma-native.hh
@@ -0,0 +1,26 @@
+/* See LICENSE file for copyright and license details. */
+#ifndef LIBGAMMA_NATIVE_HH
+#define LIBGAMMA_NATIVE_HH
+
+
+extern "C"
+{
+# ifdef __GNUC__
+# define restrict __restrict__
+# else
+# define restrict /* remove */
+# endif
+# define this self
+# include <libgamma.h>
+# undef this
+# undef restrict
+# ifndef __GNUC__
+# ifdef __attribute__
+# undef __attribute__
+# endif
+# endif
+}
+
+
+#endif
+