aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/compat.h41
1 files changed, 11 insertions, 30 deletions
diff --git a/Alc/compat.h b/Alc/compat.h
index 31c84d48..18ba8da9 100644
--- a/Alc/compat.h
+++ b/Alc/compat.h
@@ -1,22 +1,13 @@
#ifndef AL_COMPAT_H
#define AL_COMPAT_H
-#include "alstring.h"
-
#ifdef __cplusplus
-extern "C" {
-#endif
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
-#define HAVE_DYNLOAD 1
-
-#ifdef __cplusplus
-} // extern "C"
-
#include <array>
#include <string>
#include <fstream>
@@ -210,18 +201,9 @@ public:
} // namespace al
-extern "C" {
-#endif /* __cplusplus */
-
-#else
-
-#if defined(HAVE_DLFCN_H)
#define HAVE_DYNLOAD 1
-#endif
-
-#ifdef __cplusplus
-} // extern "C"
+#else /* _WIN32 */
#include <fstream>
@@ -232,24 +214,23 @@ using ifstream = std::ifstream;
} // namespace al
-extern "C" {
-#endif /* __cplusplus */
-
-#endif
-
-#ifdef HAVE_DYNLOAD
-void *LoadLib(const char *name);
-void CloseLib(void *handle);
-void *GetSymbol(void *handle, const char *name);
+#if defined(HAVE_DLFCN_H)
+#define HAVE_DYNLOAD 1
#endif
-#ifdef __cplusplus
-} /* extern "C" */
+#endif /* _WIN32 */
#include <string>
struct PathNamePair { std::string path, fname; };
PathNamePair GetProcBinary(void);
+
+#ifdef HAVE_DYNLOAD
+void *LoadLib(const char *name);
+void CloseLib(void *handle);
+void *GetSymbol(void *handle, const char *name);
#endif
+#endif /* __cplusplus */
+
#endif /* AL_COMPAT_H */