Make sure vlc_release doesn't destroy a non existent spinlock.
authorAlexis Ballier <aballier@gentoo.org>
Mon, 13 Jul 2009 10:35:48 +0000 (12:35 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 13 Jul 2009 16:30:46 +0000 (19:30 +0300)
This was actually fixed by [697457bcb66171897605b1c88150f3bb7eb075c6] but then [952a943ae25ba8f22e4e70eb0f55b4c0cee069b8] came which made it useless.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
src/libvlc.c

index 075720a..f0971a9 100644 (file)
@@ -195,7 +195,7 @@ void vlc_release (gc_object_t *p_gc)
     assert (refs != (uintptr_t)(-1)); /* reference underflow?! */
     if (refs == 0)
     {
-#ifdef USE_SYNC
+#if defined (__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
 #elif defined (WIN32) && defined (__GNUC__)
 #elif defined(__APPLE__)
 #else