]> git.sesse.net Git - vlc/commitdiff
win32: remove xstrdup macro.
authorFelix Abecassis <felix.abecassis@gmail.com>
Fri, 29 Nov 2013 10:03:54 +0000 (11:03 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 29 Nov 2013 11:07:27 +0000 (12:07 +0100)
Unnecessary (defined in vlc_common.h) and omitting the second operand is a GNU C extension.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/win32/thread.c

index 43882746375273d97a8632c52d6bca3a266ff1bc..3b575313ba7304aae97cb3fd060506285efe3ced 100644 (file)
@@ -866,8 +866,6 @@ static void SelectClockSource (vlc_object_t *obj)
     free (str);
 }
 
-#define xstrdup(str) (strdup(str) ?: (abort(), NULL))
-
 size_t EnumClockSource (vlc_object_t *obj, const char *var,
                         char ***vp, char ***np)
 {