]> git.sesse.net Git - vlc/commitdiff
demux: dash: include inttypes.h
authorThomas Guillem <thomas@gllm.fr>
Wed, 14 Jan 2015 12:21:59 +0000 (12:21 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 15 Jan 2015 10:16:42 +0000 (11:16 +0100)
Fix build for android.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/dash/DASHManager.cpp

index b6dca19d011c82acd1a5b989a0c5c59f6155cfeb..d6990da501a9c81b1741f6251280985385093523 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
-#define __STDC_CONSTANT_MACROS
+
+/* config.h may include inttypes.h, so make sure we define that option
+ * early enough. */
+#define __STDC_FORMAT_MACROS 1
+#define __STDC_CONSTANT_MACROS 1
+#define __STDC_LIMIT_MACROS 1
 
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
 
+#include <inttypes.h>
+
 #include "DASHManager.h"
 #include "mpd/MPDFactory.h"
 #include "mpd/SegmentTimeline.h"