diff options
Diffstat (limited to 'Alc/pulseaudio.c')
-rw-r--r-- | Alc/pulseaudio.c | 4 |
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) |