[openal] Questioning about linking to OS X 10.4 SDK
Lubo Diakov
lubodiakov at gmail.com
Tue Nov 4 16:18:08 EST 2014
Turns out the showstopper error for the 10.4u SDK is only in
openal-soft-1.15.1/OpenAL32/Include/alMain.h and only in two places.
Line 271 and 280 according to my diff. I'll attach it, but in case
some stupid spam filter or "antivirus" borks it, I've pasted it below:
--- /Users/lubod/Downloads/openal-soft-1.15.1/OpenAL32/Include/alMain.h.orig 2014-11-04
17:33:03.000000000 +0200
+++ /Users/lubod/Downloads/openal-soft-1.15.1/OpenAL32/Include/alMain.h 2014-11-04
22:48:07.000000000 +0200
@@ -271,7 +271,7 @@
void *oldval;
do {
oldval = *ptr;
- } while(!OSAtomicCompareAndSwapPtrBarrier(oldval, newval, ptr));
+ } while(!OSAtomicCompareAndSwap32Barrier(oldval, newval, ptr));
return oldval;
}
static __inline ALboolean CompExchangeInt(volatile int *ptr, int
oldval, int newval)
@@ -280,7 +280,7 @@
}
static __inline ALboolean CompExchangePtr(XchgPtr *ptr, void *oldval,
void *newval)
{
- return OSAtomicCompareAndSwapPtrBarrier(oldval, newval, ptr);
+ return OSAtomicCompareAndSwap32Barrier(oldval, newval, ptr);
}
#else
Lots of warnings (clearly there is some code cleanup and refactoring
needed), but it built successfully! Please incorporate into version
1.15.x, and if applicable into 1.16.x and future releases. Thanks.
--
Любомир Гаврилов Дяков
емайл:
lubodiakov at gmail.com
-------------- next part --------------
--- /Users/lubod/Downloads/openal-soft-1.15.1/OpenAL32/Include/alMain.h.orig 2014-11-04 17:33:03.000000000 +0200
+++ /Users/lubod/Downloads/openal-soft-1.15.1/OpenAL32/Include/alMain.h 2014-11-04 22:48:07.000000000 +0200
@@ -271,7 +271,7 @@
void *oldval;
do {
oldval = *ptr;
- } while(!OSAtomicCompareAndSwapPtrBarrier(oldval, newval, ptr));
+ } while(!OSAtomicCompareAndSwap32Barrier(oldval, newval, ptr));
return oldval;
}
static __inline ALboolean CompExchangeInt(volatile int *ptr, int oldval, int newval)
@@ -280,7 +280,7 @@
}
static __inline ALboolean CompExchangePtr(XchgPtr *ptr, void *oldval, void *newval)
{
- return OSAtomicCompareAndSwapPtrBarrier(oldval, newval, ptr);
+ return OSAtomicCompareAndSwap32Barrier(oldval, newval, ptr);
}
#else
More information about the openal
mailing list