aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-09-06 09:09:25 -0700
committerChris Robinson <[email protected]>2016-09-06 09:09:25 -0700
commita758cc82433ad4fd47aeac7e626dff4bd1fa739f (patch)
treeb51f7be8300671283289742113a546addca344f4 /Alc
parent1541ff24b87a3baee834fa8d8782d10eadb18c8e (diff)
Remove use of DECL_CONST
No idea if it was really gaining us anything, but removing it fixes a crash I was getting with libs built with Clang.
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c8
-rw-r--r--Alc/panning.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 7759393b..c4eb0462 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1334,8 +1334,8 @@ ALuint ChannelsFromDevFmt(enum DevFmtChannels chans)
return 0;
}
-DECL_CONST static ALboolean DecomposeDevFormat(ALenum format,
- enum DevFmtChannels *chans, enum DevFmtType *type)
+static ALboolean DecomposeDevFormat(ALenum format, enum DevFmtChannels *chans,
+ enum DevFmtType *type)
{
static const struct {
ALenum format;
@@ -1381,7 +1381,7 @@ DECL_CONST static ALboolean DecomposeDevFormat(ALenum format,
return AL_FALSE;
}
-DECL_CONST static ALCboolean IsValidALCType(ALCenum type)
+static ALCboolean IsValidALCType(ALCenum type)
{
switch(type)
{
@@ -1397,7 +1397,7 @@ DECL_CONST static ALCboolean IsValidALCType(ALCenum type)
return ALC_FALSE;
}
-DECL_CONST static ALCboolean IsValidALCChannels(ALCenum channels)
+static ALCboolean IsValidALCChannels(ALCenum channels)
{
switch(channels)
{
diff --git a/Alc/panning.c b/Alc/panning.c
index 172861da..1162bbbc 100644
--- a/Alc/panning.c
+++ b/Alc/panning.c
@@ -290,7 +290,7 @@ void ComputeFirstOrderGainsBF(const BFChannelConfig *chanmap, ALuint numchans, c
}
-DECL_CONST static inline const char *GetLabelFromChannel(enum Channel channel)
+static inline const char *GetLabelFromChannel(enum Channel channel)
{
switch(channel)
{