diff --git a/modules/highgui/src/ffmpeg_codecs.hpp b/modules/highgui/src/ffmpeg_codecs.hpp index 7d28e9215..453828c84 100644 --- a/modules/highgui/src/ffmpeg_codecs.hpp +++ b/modules/highgui/src/ffmpeg_codecs.hpp @@ -44,6 +44,15 @@ extern "C" { #endif +#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 +#endif + #ifdef WIN32 #include #else