diff options
author | Chris Robinson <[email protected]> | 2011-08-30 17:55:52 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-08-30 17:55:52 -0700 |
commit | 755062fb76148d740681eb33046f8f2a7729eab3 (patch) | |
tree | e5fdfdc51b2335a849c7d298c858a95b36aa0161 | |
parent | 7d577832cd6570480f31fc390ad079bbeeadc692 (diff) |
Fix compilation with MSVC
-rw-r--r-- | OpenAL32/Include/alMain.h | 4 |
1 files 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) { |