printf: On MSVC, also define HAVE_STDINT_H_WITH_UINTMAX
authorNirbheek Chauhan <nirbheek@centricular.com>
Sat, 13 Feb 2016 01:23:24 +0000 (06:53 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 20 Feb 2016 10:07:37 +0000 (10:07 +0000)
MSVC provides stdint.h but not inttypes.h, and we need to include stdint.h to
get intmax_t

gst/printf/gst-printf.h

index b7d55a9..db5972a 100644 (file)
 /* define to support printing 64-bit integers with format I64 */
 #define HAVE_INT64_AND_I64 1
 
-/* FIXME: do we need to do anything else here? or should we just typedef/define
- * intmax_t etc. to __int64? */
 #if defined (_MSC_VER) && _MSC_VER >= 1600
 #undef HAVE_INTMAX_T
 #define HAVE_INTMAX_T 1
+#define HAVE_STDINT_H_WITH_UINTMAX 1
 #endif
 
 #endif /* G_OS_WIN32 */