* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef AVUTIL_ATOMIC_GCC_H
+#define AVUTIL_ATOMIC_GCC_H
+
#include "atomic.h"
#define avpriv_atomic_int_get atomic_int_get_gcc
{
return __sync_val_compare_and_swap(ptr, oldval, newval);
}
+
+#endif /* AVUTIL_ATOMIC_GCC_H */
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef AVUTIL_ATOMIC_SUNCC_H
+#define AVUTIL_ATOMIC_SUNCC_H
+
#include <atomic.h>
#include <mbarrier.h>
return atomic_cas_ptr(ptr, oldval, newval);
}
+#endif /* AVUTIL_ATOMIC_SUNCC_H */
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef AVUTIL_ATOMIC_WIN32_H
+#define AVUTIL_ATOMIC_WIN32_H
+
#include <windows.h>
#include "atomic.h"
{
return InterlockedCompareExchangePointer(ptr, newval, oldval);
}
+
+#endif /* AVUTIL_ATOMIC_WIN32_H */