Commit f30e0d9e authored by Bernd Kuhls's avatar Bernd Kuhls Committed by Jean-Baptiste Kempf

include/vlc_fixups.h: uClibc needs __STDC_FORMAT_MACROS

Fixes compile error with gcc-4.9.3:

  CXX      demux/mkv/libmkv_plugin_la-util.lo
In file included from ../include/vlc_common.h:893:0,
                 from demux/mkv/mkv.hpp:38,
                 from demux/mkv/util.cpp:24:
demux/mkv/util.cpp: In function 'void handle_real_audio(demux_t*, mkv_track_t*, block_t*, mtime_t)':
demux/mkv/util.cpp:192:79: error: expected ')' before 'PRId64'
             msg_Dbg( p_demux, "discard non-key preroll block in track %d at%" PRId64,
                                                                               ^
Signed-off-by: default avatarBernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 38396a35
......@@ -793,7 +793,7 @@ dnl BSD
AC_CHECK_HEADERS([netinet/udplite.h sys/param.h sys/mount.h])
dnl GNU/Linux
AC_CHECK_HEADERS([getopt.h linux/dccp.h linux/magic.h mntent.h sys/eventfd.h])
AC_CHECK_HEADERS([features.h getopt.h linux/dccp.h linux/magic.h mntent.h sys/eventfd.h])
dnl MacOS
AC_CHECK_HEADERS([xlocale.h])
......
......@@ -26,9 +26,14 @@
#ifndef LIBVLC_FIXUPS_H
# define LIBVLC_FIXUPS_H 1
/* needed to detect uClibc */
#ifdef HAVE_FEATURES_H
#include <features.h>
#endif
/* C++11 says there's no need to define __STDC_*_MACROS when including
* inttypes.h and stdint.h. */
#if defined (__cplusplus) && (!defined(HAVE_CXX11) || defined(__MINGW32__))
#if defined (__cplusplus) && (!defined(HAVE_CXX11) || defined(__MINGW32__) || defined(__UCLIBC__))
# ifndef __STDC_FORMAT_MACROS
# define __STDC_FORMAT_MACROS 1
# endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment