]> git.sesse.net Git - vlc/blobdiff - modules/demux/mkv.cpp
Make sure INT64_C is defined correctly, and that we don't conflict with config.h.
[vlc] / modules / demux / mkv.cpp
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>