Commit 1d7e09a9 authored by Alexander Reshetnikov's avatar Alexander Reshetnikov

Removed duplicated ifdef code from ffmpeg wrappers

parent 7a59d6c7
...@@ -51,19 +51,6 @@ ...@@ -51,19 +51,6 @@
extern "C" { extern "C" {
#endif #endif
#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 <stdint.h>
#endif
#include <errno.h>
#endif
#include "ffmpeg_codecs.hpp" #include "ffmpeg_codecs.hpp"
#ifdef WIN32 #ifdef WIN32
......
...@@ -52,19 +52,6 @@ ...@@ -52,19 +52,6 @@
extern "C" { extern "C" {
#endif #endif
#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 <stdint.h>
#endif
#include <errno.h>
#endif
#include "ffmpeg_codecs.hpp" #include "ffmpeg_codecs.hpp"
#ifdef WIN32 #ifdef WIN32
......
...@@ -44,6 +44,8 @@ ...@@ -44,6 +44,8 @@
extern "C" { extern "C" {
#endif #endif
#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 #if !defined INT64_C || !defined UINT64_C
#define INT64_C #define INT64_C
#define UINT64_C #define UINT64_C
...@@ -52,6 +54,8 @@ extern "C" { ...@@ -52,6 +54,8 @@ extern "C" {
#undef _STDINT_H #undef _STDINT_H
#include <stdint.h> #include <stdint.h>
#endif #endif
#include <errno.h>
#endif
#ifdef WIN32 #ifdef WIN32
#include <libavformat/avformat.h> #include <libavformat/avformat.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