From 0e314163e5f8d1f612c2e7f390bf32ee92779845 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Wed, 10 Oct 2012 17:27:32 +0400 Subject: [PATCH] fixed INT64_C & UINT64_C definitions (patch #2033) --- modules/highgui/src/ffmpeg_codecs.hpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/modules/highgui/src/ffmpeg_codecs.hpp b/modules/highgui/src/ffmpeg_codecs.hpp index a9654ad9a5..ca7f55c656 100644 --- a/modules/highgui/src/ffmpeg_codecs.hpp +++ b/modules/highgui/src/ffmpeg_codecs.hpp @@ -46,14 +46,17 @@ extern "C" { #if !defined(WIN32) || defined(__MINGW32__) // some versions of FFMPEG assume a C99 compiler, and don't define INT64_C -#if !defined INT64_C || !defined UINT64_C -#define INT64_C -#define UINT64_C - #define __STDC_CONSTANT_MACROS -// force re-inclusion of stdint.h to get INT64_C macro -#undef _STDINT_H #include + +// some versions of FFMPEG assume a C99 compiler, and don't define INT64_C +#ifndef INT64_C +#define INT64_C(c) (c##LL) #endif + +#ifndef UINT64_C +#define UINT64_C(c) (c##ULL) +#endif + #include #endif