--msgid-bugs-address="$$msgid_bugs_address" \
;; \
esac
- sed 's/&/\&/' $(DOMAIN).po > $(DOMAIN).po1 && \
- mv $(DOMAIN).po1 $(DOMAIN).po;
test ! -f $(DOMAIN).po || { \
if test -f $(srcdir)/$(DOMAIN).pot; then \
sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
#include <vlc_vlm.h>
+#ifdef __APPLE__
+# include <libkern/OSAtomic.h>
+#endif
+
#include <assert.h>
/*****************************************************************************
p_gc->refs = 1;
#ifdef USE_SYNC
__sync_synchronize ();
+#elif defined(__APPLE__)
+ OSMemoryBarrier ();
#else
/* Nobody else can possibly lock the spin - it's there as a barrier */
vlc_spin_init (&p_gc->spin);
#ifdef USE_SYNC
refs = __sync_fetch_and_add (&p_gc->refs, 1);
+#elif defined(__APPLE__)
+ OSAtomicIncrement32Barrier((int*)&p_gc->refs);
#else
vlc_spin_lock (&p_gc->spin);
refs = p_gc->refs++;
#ifdef USE_SYNC
refs = __sync_fetch_and_sub (&p_gc->refs, 1);
+#elif defined(__APPLE__)
+ OSAtomicDecrement32Barrier((int*)&p_gc->refs);
#else
vlc_spin_lock (&p_gc->spin);
refs = p_gc->refs--;