aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma-native.hh
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-07-21 17:24:10 +0200
committerMattias Andrée <maandree@kth.se>2022-07-21 17:24:10 +0200
commit8602df60ad189c73464bbf6b6918b538da43a22e (patch)
tree10c108bf8ae4df13210d6c7bd3b2f393b6b9f612 /libgamma-native.hh
parentupdate dist (diff)
downloadlibgammamm-8602df60ad189c73464bbf6b6918b538da43a22e.tar.gz
libgammamm-8602df60ad189c73464bbf6b6918b538da43a22e.tar.bz2
libgammamm-8602df60ad189c73464bbf6b6918b538da43a22e.tar.xz
Change license, improve makefile, remove dist/
Signed-off-by: Mattias Andrée <maandree@kth.se>
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
+