aboutsummaryrefslogtreecommitdiff
path: root/include/util/defs.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-18 21:49:23 -0500
committerGitHub <noreply@github.com>2018-02-18 21:49:23 -0500
commit868ad5af69583646ba71d6e73e362818c7416941 (patch)
tree723b27e9b1fd24e85d9c44203f19364720510827 /include/util/defs.h
parent566c98846a92300d29e9fb4b408fd7e51898d42c (diff)
parent86269052eb7be715eba274dffc30c77c11b8309c (diff)
Merge pull request #647 from ascent12/elf_visibility
ELF Visibility
Diffstat (limited to 'include/util/defs.h')
-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