From 755062fb76148d740681eb33046f8f2a7729eab3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 30 Aug 2011 17:55:52 -0700 Subject: Fix compilation with MSVC --- OpenAL32/Include/alMain.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index cd4b7174..299b16a0 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -252,7 +252,7 @@ static __inline RefCount IncrementRef(volatile RefCount *ptr) static __inline RefCount DecrementRef(volatile RefCount *ptr) { return InterlockedDecrement(ptr); } -static LONG_size_does_not_match_int[(sizeof(LONG)==sizeof(int))?0:-1]; +extern ALbyte LONG_size_does_not_match_int[(sizeof(LONG)==sizeof(int))?1:-1]; static __inline int ExchangeInt(volatile int *ptr, int newval) { @@ -264,7 +264,7 @@ static __inline int ExchangeInt(volatile int *ptr, int newval) } static __inline void *ExchangePtr(void *volatile*ptr, void *newval) { - return InterlockedExchangePtr(ptr, newval); + return InterlockedExchangePointer(ptr, newval); } static __inline ALboolean CompExchangeInt(volatile int *ptr, int oldval, int newval) { -- cgit v1.2.3