Commit 94f55c60 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

Make sure INT64_C is defined correctly, and that we don't conflict with config.h.

parent daf35d71
......@@ -27,11 +27,15 @@
* 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>
......
......@@ -26,12 +26,15 @@
* 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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment