aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/alconfig.cpp4
-rw-r--r--Alc/alconfig.h12
-rw-r--r--Alc/cpu_caps.h7
-rw-r--r--OpenAL32/Include/alError.h7
4 files changed, 3 insertions, 27 deletions
diff --git a/Alc/alconfig.cpp b/Alc/alconfig.cpp
index c4fde638..db5251f0 100644
--- a/Alc/alconfig.cpp
+++ b/Alc/alconfig.cpp
@@ -285,7 +285,7 @@ void LoadConfigFromFile(std::istream &f)
#ifdef _WIN32
-void ReadALConfig(void) noexcept
+void ReadALConfig()
{
WCHAR buffer[MAX_PATH];
if(SHGetSpecialFolderPathW(nullptr, buffer, CSIDL_APPDATA, FALSE) != FALSE)
@@ -321,7 +321,7 @@ void ReadALConfig(void) noexcept
}
}
#else
-void ReadALConfig(void) noexcept
+void ReadALConfig()
{
const char *str{"/etc/openal/alsoft.conf"};
diff --git a/Alc/alconfig.h b/Alc/alconfig.h
index 0e9bcec3..290172a8 100644
--- a/Alc/alconfig.h
+++ b/Alc/alconfig.h
@@ -1,14 +1,8 @@
#ifndef ALCONFIG_H
#define ALCONFIG_H
-#ifdef __cplusplus
-#define NOEXCEPT noexcept
-extern "C" {
-#else
-#define NOEXCEPT
-#endif
-void ReadALConfig(void) NOEXCEPT;
+void ReadALConfig();
int ConfigValueExists(const char *devName, const char *blockName, const char *keyName);
const char *GetConfigValue(const char *devName, const char *blockName, const char *keyName, const char *def);
@@ -20,8 +14,4 @@ int ConfigValueUInt(const char *devName, const char *blockName, const char *keyN
int ConfigValueFloat(const char *devName, const char *blockName, const char *keyName, float *ret);
int ConfigValueBool(const char *devName, const char *blockName, const char *keyName, int *ret);
-#ifdef __cplusplus
-} // extern "C"
-#endif
-
#endif /* ALCONFIG_H */
diff --git a/Alc/cpu_caps.h b/Alc/cpu_caps.h
index 1d867f37..64a4ee45 100644
--- a/Alc/cpu_caps.h
+++ b/Alc/cpu_caps.h
@@ -1,9 +1,6 @@
#ifndef CPU_CAPS_H
#define CPU_CAPS_H
-#ifdef __cplusplus
-extern "C" {
-#endif
extern int CPUCapFlags;
enum {
@@ -16,8 +13,4 @@ enum {
void FillCPUCaps(int capfilter);
-#ifdef __cplusplus
-} // extern "C"
-#endif
-
#endif /* CPU_CAPS_H */
diff --git a/OpenAL32/Include/alError.h b/OpenAL32/Include/alError.h
index 858f81de..3e4f2373 100644
--- a/OpenAL32/Include/alError.h
+++ b/OpenAL32/Include/alError.h
@@ -4,9 +4,6 @@
#include "alMain.h"
#include "logging.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
extern ALboolean TrapALError;
@@ -22,8 +19,4 @@ void alSetError(ALCcontext *context, ALenum errorCode, const char *msg, ...) DEC
return retval; \
} while(0)
-#ifdef __cplusplus
-}
-#endif
-
#endif