]> git.sesse.net Git - vlc/commitdiff
Make sure INT64_C is defined correctly, and that we don't conflict with config.h.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 28 May 2008 18:25:41 +0000 (20:25 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 28 May 2008 18:25:41 +0000 (20:25 +0200)
modules/demux/live555.cpp
modules/demux/mkv.cpp

index ffed8fe809a7824148c697fb5b0fefc646c69a4c..da9e56daef0097abf049eee7afcf936550a4f871 100644 (file)
  * Preamble
  *****************************************************************************/
 
+/* For inttypes.h
+ * Note: config.h may include inttypes.h, so make sure we define this option
+ * early enough. */
+#define __STDC_CONSTANT_MACROS 1
+
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
 
-#define __STDC_CONSTANT_MACROS 1
 #include <inttypes.h>
 
 #include <vlc/vlc.h>
index 9820a2f6e2e8f1d86b93d123aba96c9784edd293..23fe44f385178b4e6485cba18fdcd7dd72c6e4b4 100644 (file)
  * Preamble
  *****************************************************************************/
 
+/* 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
+
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
 
-#define __STDC_FORMAT_MACROS 1
-#define __STDC_CONSTANT_MACROS 1
 #include <inttypes.h>
 
 #include <vlc/vlc.h>