[vlc-commits] demux: dash: include inttypes.h
Thomas Guillem
git at videolan.org
Thu Jan 15 11:18:40 CET 2015
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jan 14 12:21:59 2015 +0000| [c8feccf0028d898a976aff2b930fa204b7217443] | committer: Jean-Baptiste Kempf
demux: dash: include inttypes.h
Fix build for android.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c8feccf0028d898a976aff2b930fa204b7217443
---
modules/demux/dash/DASHManager.cpp | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/modules/demux/dash/DASHManager.cpp b/modules/demux/dash/DASHManager.cpp
index b6dca19..d6990da 100644
--- a/modules/demux/dash/DASHManager.cpp
+++ b/modules/demux/dash/DASHManager.cpp
@@ -21,12 +21,19 @@
* 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"
More information about the vlc-commits
mailing list