aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/util/defs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/util/defs.h b/include/util/defs.h
new file mode 100644
index 00000000..55a21f6b
--- /dev/null
+++ b/include/util/defs.h
@@ -0,0 +1,10 @@
+#ifndef UTIL_DEFS_H
+#define UTIL_DEFS_H
+
+#ifdef __GNUC__
+#define WLR_API __attribute__((visibility("default")))
+#else
+#define WLR_API
+#endif
+
+#endif