[vlc-devel] commit: Provide default for vlc_pthread_fatal ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat May 24 11:07:29 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Sat May 24 12:09:00 2008 +0300| [5143683b7bf2be576bf0efd3bd5a80838e902556]
Provide default for vlc_pthread_fatal
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5143683b7bf2be576bf0efd3bd5a80838e902556
---
src/misc/threads.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/misc/threads.c b/src/misc/threads.c
index fc70d91..0ab4efa 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -73,7 +73,6 @@ static inline unsigned long vlc_threadid (void)
return v.i;
}
-
/*****************************************************************************
* vlc_thread_fatal: Report an error from the threading layer
*****************************************************************************
@@ -114,9 +113,15 @@ void vlc_pthread_fatal (const char *action, int error,
fflush (stderr);
abort ();
}
+#else
+void vlc_pthread_fatal (const char *action, int error,
+ const char *file, unsigned line)
+{
+ (void)action; (void)error; (void)file; (void)line;
+ abort();
+}
#endif
-
/*****************************************************************************
* vlc_threads_init: initialize threads system
*****************************************************************************
More information about the vlc-devel
mailing list