aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-02-16 05:44:39 -0800
committerChris Robinson <[email protected]>2010-02-16 05:44:39 -0800
commit9b47048231169ec1cdcea1f20638f6426d796e92 (patch)
treeb699740935352ffbe624b15dc44251affceb832f
parentc05a3d3549b0a656e126253abfd79494979edce8 (diff)
Silence some warnings
-rw-r--r--Alc/pulseaudio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c
index 447a4945..e3b12838 100644
--- a/Alc/pulseaudio.c
+++ b/Alc/pulseaudio.c
@@ -147,7 +147,7 @@ void *pulse_load(void) //{{{
#ifdef _WIN32
pa_handle = LoadLibrary("libpulse-0.dll");
#define LOAD_FUNC(x) do { \
- p##x = GetProcAddress(pa_handle, #x); \
+ p##x = (typeof(p##x))GetProcAddress(pa_handle, #x); \
if(!(p##x)) { \
AL_PRINT("Could not load %s from libpulse-0.dll\n", #x); \
FreeLibrary(pa_handle); \
@@ -156,7 +156,7 @@ void *pulse_load(void) //{{{
} \
} while(0)
#define LOAD_OPTIONAL_FUNC(x) do { \
- p##x = GetProcAddress(pa_handle, #x); \
+ p##x = (typeof(p##x))GetProcAddress(pa_handle, #x); \
} while(0)
#elif defined (HAVE_DLFCN_H)