aboutsummaryrefslogtreecommitdiffstats
path: root/common/dynload.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-08-10 21:54:30 -0700
committerChris Robinson <[email protected]>2019-08-10 21:54:30 -0700
commit70058a8a8405a36c66235a56b482c4c0c7a46780 (patch)
treef0e574a0fc5f5227de699f57fbb4aad57ecde9ee /common/dynload.h
parentdca2365051e4697f5a1692252e9516398f746e0b (diff)
Move the dynload decls and defs to common
Diffstat (limited to 'common/dynload.h')
-rw-r--r--common/dynload.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/common/dynload.h b/common/dynload.h
new file mode 100644
index 00000000..bd9e86f7
--- /dev/null
+++ b/common/dynload.h
@@ -0,0 +1,14 @@
+#ifndef AL_DYNLOAD_H
+#define AL_DYNLOAD_H
+
+#if defined(_WIN32) || defined(HAVE_DLFCN_H)
+
+#define HAVE_DYNLOAD
+
+void *LoadLib(const char *name);
+void CloseLib(void *handle);
+void *GetSymbol(void *handle, const char *name);
+
+#endif
+
+#endif /* AL_DYNLOAD_H */