aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-28 17:48:48 -0700
committerChris Robinson <[email protected]>2013-10-28 17:48:48 -0700
commit823782a33f70de054852c6f15621d2e605cc2950 (patch)
treefe4ca142884f3ef7099bce941b25597b3af7e321
parent321644de7cd2fb418f4966639c824aba1ce689ad (diff)
Declare LoadLib functions in one place
-rw-r--r--Alc/compat.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Alc/compat.h b/Alc/compat.h
index 21ccde7e..af9f8e84 100644
--- a/Alc/compat.h
+++ b/Alc/compat.h
@@ -14,11 +14,6 @@ int pthread_key_delete(pthread_key_t key);
void *pthread_getspecific(pthread_key_t key);
int pthread_setspecific(pthread_key_t key, void *val);
-#define HAVE_DYNLOAD 1
-void *LoadLib(const char *name);
-void CloseLib(void *handle);
-void *GetSymbol(void *handle, const char *name);
-
WCHAR *strdupW(const WCHAR *str);
typedef LONG pthread_once_t;
@@ -28,6 +23,8 @@ void pthread_once(pthread_once_t *once, void (*callback)(void));
static inline int sched_yield(void)
{ SwitchToThread(); return 0; }
+#define HAVE_DYNLOAD 1
+
#else
#include <pthread.h>
@@ -43,11 +40,14 @@ void Sleep(ALuint t);
#if defined(HAVE_DLFCN_H)
#define HAVE_DYNLOAD 1
+#endif
+
+#endif
+
+#ifdef HAVE_DYNLOAD
void *LoadLib(const char *name);
void CloseLib(void *handle);
void *GetSymbol(void *handle, const char *name);
#endif
-#endif
-
#endif /* AL_COMPAT_H */