diff --git a/src/platform/common.h b/src/platform/common.h index bd594ba1..4104d4ea 100644 --- a/src/platform/common.h +++ b/src/platform/common.h @@ -11,6 +11,10 @@ #include #include +#ifndef _WIN32 + #include + #include +#endif #include "src/config.h" #include "src/logging.h" @@ -31,6 +35,7 @@ struct AVHWFramesContext; struct AVCodecContext; struct AVDictionary; +#ifdef _WIN32 // Forward declarations of boost classes to avoid having to include boost headers // here, which results in issues with Windows.h and WinSock2.h include order. namespace boost { @@ -50,6 +55,7 @@ namespace boost { typedef basic_environment environment; } // namespace process } // namespace boost +#endif namespace video { struct config_t; } // namespace video