[vlc-devel] commit: C++ <inttypes.h> inclusion fixes ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu May 1 19:40:35 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Thu May  1 20:41:36 2008 +0300| [ee45d753f6a9d888fa953da05551201d5b2a6d16]

C++ <inttypes.h> inclusion fixes

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ee45d753f6a9d888fa953da05551201d5b2a6d16
---

 modules/access/dshow/dshow.cpp       |    3 +++
 modules/demux/live555.cpp            |    3 +++
 modules/demux/mkv.cpp                |    4 ++++
 modules/gui/wince/interface.cpp      |    3 +++
 modules/video_filter/atmo/AtmoDefs.h |    4 ++++
 5 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/modules/access/dshow/dshow.cpp b/modules/access/dshow/dshow.cpp
index 40458eb..e15745d 100644
--- a/modules/access/dshow/dshow.cpp
+++ b/modules/access/dshow/dshow.cpp
@@ -30,6 +30,9 @@
 # include "config.h"
 #endif
 
+#define __STDC_FORMAT_MACROS 1
+#include <inttypes.h>
+
 #include <vlc/vlc.h>
 #include <vlc_input.h>
 #include <vlc_access.h>
diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp
index b9e4d4b..20a8a4f 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -31,6 +31,9 @@
 # include "config.h"
 #endif
 
+#define __STDC_CONSTANT_MACROS 1
+#include <inttypes.h>
+
 #include <vlc/vlc.h>
 
 #include <vlc_demux.h>
diff --git a/modules/demux/mkv.cpp b/modules/demux/mkv.cpp
index 41d1e7e..4ef7a76 100644
--- a/modules/demux/mkv.cpp
+++ b/modules/demux/mkv.cpp
@@ -30,6 +30,10 @@
 # include "config.h"
 #endif
 
+#define __STDC_FORMAT_MACROS 1
+#define __STDC_CONSTANT_MACROS 1
+#include <inttypes.h>
+
 #include <vlc/vlc.h>
 
 #ifdef HAVE_TIME_H
diff --git a/modules/gui/wince/interface.cpp b/modules/gui/wince/interface.cpp
index 25f8795..d990fa1 100644
--- a/modules/gui/wince/interface.cpp
+++ b/modules/gui/wince/interface.cpp
@@ -30,6 +30,9 @@
 # include "config.h"
 #endif
 
+#define __STDC_CONSTANT_MACROS 1
+#include <inttypes.h>
+
 #include <vlc/vlc.h>
 #include <vlc_aout.h>
 #include <vlc_vout.h>
diff --git a/modules/video_filter/atmo/AtmoDefs.h b/modules/video_filter/atmo/AtmoDefs.h
index 0ccb30a..9f9c6de 100644
--- a/modules/video_filter/atmo/AtmoDefs.h
+++ b/modules/video_filter/atmo/AtmoDefs.h
@@ -12,6 +12,10 @@
 
 #if defined(__LIBVLC__)
 #   include "config.h"
+
+#   define __STDC_CONSTANT_MACROS 1
+#   include <inttypes.h>
+
 #   include <vlc/vlc.h>
 
 /* some things need to be changed if this code is used inside VideoLan Filter Module */




More information about the vlc-devel mailing list